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

Replaced my_logger with env_logger in docs #153

Merged
merged 2 commits into from May 20, 2017

Conversation

Projects
None yet
2 participants
@omh1280
Copy link
Contributor

omh1280 commented May 20, 2017

Fixes #120

Ottavio

src/lib.rs Outdated
//!
//! env_logger::init().unwrap();
//!
//! // Set the RUST_LOG level prior to running the binary

This comment has been minimized.

@dtolnay

dtolnay May 20, 2017

Member

This sounds like it says the next line info!("starting up") sets the RUST_LOG level. Also RUST_LOG contains more than just the level.

I would prefer to put this above the previous line and say something like:

// Select env_logger, one possible logger implementation
// (see https://doc.rust-lang.org/log/env_logger/index.html)
env_logger::init().unwrap();

This comment has been minimized.

@omh1280

omh1280 May 20, 2017

Author Contributor

Ok!

@dtolnay dtolnay merged commit 1e0a7fd into rust-lang-nursery:master May 20, 2017

1 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@omh1280 omh1280 deleted the omh1280:env_logger_doc branch May 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.