emabee / flexi_logger

A flexible logger for rust programs that can write to stderr, stdout, and/or to log files
Apache License 2.0
307 stars 50 forks source link

logging to different log files #126

Closed incker closed 1 year ago

incker commented 1 year ago

Maybe a question not a feature reqwest.

I have seen that it is possible to write log something like this

log!(target: "app_events", Level::Warn, "Some desription: {}", 4);

Is that possible to write to different log files depends on target (target = file name)?

Or maybe you can advise any other crate that can make different file logging. forward thank you!

emabee commented 1 year ago

Yes, that should be possible. See module writers for more details.

incker commented 1 year ago

Thank you! That helped!