You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")
The text was updated successfully, but these errors were encountered:
I wasn't aware that env_logger has the same limitation.
Doing it the way you suggest was my backup, I was just hoping to get this abstracted in your library, especially since I assume it is a common thing people would like to do.
This might be starting to get ugly but you could introduce new methods like try_with_custom_env, this way doesn't break backwards compatibility either.
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")
andLogger::try_with_env_or_str("ENV_VARIABLE_NAME", "info")
The text was updated successfully, but these errors were encountered: