Skip to content

How can I have different levels for the different modules? #2412

Answered by hawkw
ybbh asked this question in Q&A
Discussion options

You must be logged in to vote

You can do this using a filter that enables different levels for each module you want to see logs from. See https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html for documentation on how to configure this kind of filtering.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ybbh
Comment options

Answer selected by ybbh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants