Closed jb-alvarado closed 2 months ago
I saw now that the log crate have a target:
command. flexi_logger uses this to redirect to different logger: https://docs.rs/flexi_logger/latest/flexi_logger/writers/index.html.
Something like that would be awesome in simplelog.
Hello, I would like to ask if somebody can give me some hints/examples of how to create multiple independent loggers.
Using CombinedLogger with TermLogger, LogMailer and different Levels is not enough. Both loggers needs to have all levels.
I try something like this:
But the problem with that is, that I can not clone Log2 and send it to different threads. It also override the log file after every restart.
Using for both logger the logging macros would be even more nice, but I guess that is not possible?