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.
I often write projects in Python where my logging level should be
warnor eveninfoif 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 theRUST_LOGenvironment variable and setting it if it's absent before callingenv_logger::init()... a solution which, I think you'll agree, looks like an ugly hack.