Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter log messages based on module, when using the json logger format. #396

Open
madelaney opened this issue Sep 25, 2024 · 1 comment
Open

Comments

@madelaney
Copy link

I was looking at json_logger.rs, but it was unclear how I can filter the messages based on the module. For example, if I just want the module that is setting up log4rs to actually log messages.

@madelaney
Copy link
Author

I found out I can do something like .logger(Logger::builder().build("other_module", LevelFilter::Off)), but I'm still curious if I can turn off everything except the root module without having to list the other modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant