Skip to content

Give the ability to specify what env variable to read the level specification from #84

@SpyrosRoum

Description

@SpyrosRoum

Hello, I believe it would be a good idea to allow for custom env variables (maybe with RUST_LOG being the default).
This way I can use flexi_logger for more than one apps at a time and each one can have their own log level

I'd be happy to help implement this. I am thinking the api would look something like Logger::try_with_env("ENV_VARIABLE_NAME") and Logger::try_with_env_or_str("ENV_VARIABLE_NAME", "info")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions