Skip to content

Silence logs from a single crate #1751

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

You must be logged in to vote

You can do this using the EnvFilter layer from tracing-subscriber, or its lighter-weight cousin, the Targets layer. See here for an overview of how to use filter layers with tracing-subscriber.

Hope that helps!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jafioti
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