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
{{ message }}
Repository navigation
Add ability to log to both env_logger and a custom logger #85
At the moment, env_logger::init initializes the env logger, and registers it using the one-shot log::set_logger. This means there's no way to combine env logging with a custom logger.
@asajeffrey I encountered the same problem, how should I deal with it? I have a channel sender that needs to send log, and at the same time I want the original log behavior. How should I do it?
@asajeffrey I encountered the same problem, how should I deal with it? I have a channel sender that needs to send log, and at the same time I want the original log behavior. How should I do it?
You can implement your own custom logger that calls zero or more others loggers.
Activity
Separated env log building and registration, fixing rust-lang#85.
kitty-eu-org commentedon Feb 26, 2024
@asajeffrey I encountered the same problem, how should I deal with it? I have a channel sender that needs to send log, and at the same time I want the original log behavior. How should I do it?
Thomasdezeeuw commentedon Feb 26, 2024
You can implement your own custom logger that calls zero or more others loggers.