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

Cargo main function logging #23

Open
leonjia0112 opened this issue Nov 16, 2018 · 1 comment
Open

Cargo main function logging #23

leonjia0112 opened this issue Nov 16, 2018 · 1 comment

Comments

@leonjia0112
Copy link

When I put the example in main.rs. Ran with RUST_LOG=main=trace cargo run. Nothing was print out. It is an issue with pretty_env_logger or cargo itself? Because running RUST_LOG=trace cargo run will print out everything, which is not what we want.

@seanmonstar
Copy link
Owner

You need to use the name of the crate, like RUST_LOG=your_app=trace.

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