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

is there anyway to disable all crates log and only show log of my program? #111

Closed
NiiightmareXD opened this issue Jul 27, 2022 · 2 comments

Comments

@NiiightmareXD
Copy link

No description provided.

@daboross
Copy link
Owner

Yep! Use Dispatch::level to set the default level to LevelFilter::Off, then use Dispatch::level_for to set the level for your crate name to whatever log level you want.

@NiiightmareXD
Copy link
Author

Thanks

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

2 participants