[−][src]Crate loge
A logger configured via an environment variable which writes cancer to standard error with colored output for logs.
Example
env::set_var("RUST_LOG", "trace"); env::set_var("LOGE_FORMAT", "target"); loge::init(); // Or `loge::init_with_file("your-app.log");` trace!("this is trace level"); debug!("meet a note"); info!("everything is normal"); warn!("be careful"); error!("something error");
Enums
LogeFormat |
|
Functions
init | Initializes the global logger. |
init_custom | Initialized the global logger with a logger named |
init_custom_env | Initialized the global logger with a logger named |
try_init | Initializes the global logger with a logger named |
try_init_custom | Initialized the global logger with a logger named |
try_init_custom_env | Initialized the global logger with a logger named |