- Notifications
You must be signed in to change notification settings - Fork61
A pretty, easy-to-use logger for Rust.
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHEMIT
LICENSE-MITNotificationsYou must be signed in to change notification settings
seanmonstar/pretty-env-logger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple logger built on top ofenv_logger.It is configured via an environment variable and writes to standarderror with nice colored output for log levels.
Add the dependency to yourCargo.toml
:
[dependencies]log ="0.4"pretty_env_logger ="0.4"
Add some usage to your application:
externcrate pretty_env_logger;#[macro_use]externcrate log;fnmain(){ pretty_env_logger::init();info!("such information");warn!("o_O");error!("much error");}
Then run your app with the environmental variable set:
RUST_LOG=trace cargo run
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE orhttp://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT orhttp://opensource.org/licenses/MIT)
About
A pretty, easy-to-use logger for Rust.
Topics
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHEMIT
LICENSE-MITUh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.