[][src]Crate simple_logger

A logger that prints all messages with a readable output format.

Functions

init

Initializes the global logger with a SimpleLogger instance with max_log_level set to LogLevel::Trace.

init_by_env

A macro for simulating env_logger behavior, which enables the user to choose log level by setting a RUST_LOG environment variable. The RUST_LOG is not set or its value is not recognized as one of the log levels, this function with use the Error level by default.

init_with_level

Initializes the global logger with a SimpleLogger instance with max_log_level set to a specific log level.