Skip to content

Support and clearly document a means to change the default log level #93

Description

@ssokolow

I often write projects in Python where my logging level should be warn or even info if the user doesn't specify anything.

Currently, the docs are unclear whether there's a way to set a logging level, but still allow it to be overridden by RUST_LOG, other than by checking for the RUST_LOG environment variable and setting it if it's absent before calling env_logger::init()... a solution which, I think you'll agree, looks like an ugly hack.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions