Geal / rust-syslog

Send syslog messages from Rust
MIT License
110 stars 55 forks source link

How to set the log to respect log-specification? #58

Closed abclmnoxyz closed 2 years ago

abclmnoxyz commented 2 years ago

Great lib, thanks.

I have a problem when using the lib: It can only set log-level and does not follow log-specification.

For example: I want to show my_app's all debug log, but all others are in info-level:

RUST_LOG=info;my_app=debug

Is there a way to implement this? Thanks very much!

Geal commented 2 years ago

this is best done at another level of your logging system. This crate is there mainly as output