Modules
Macros
Logs a message at the debug level.
Prints a 3-tuple of u8s, if at RUST_LOG=debug
Prints a u8 variable, if at RUST_LOG=debug
Logs a variable and its value, if at RUST_LOG>=debug
Logs a message at the error level.
Formats a 3-tuple of u8s in useful ways.
Formats a u8 variable in a useful way.
Logs a message at the info level.
Prints a 3-tuple of u8s, if at RUST_LOG=info
Prints a u8 variable, if at RUST_LOG=info
Logs a variable and its value, if at RUST_LOG>=info
The standard logging macro.
Determines if a message logged at the specified level in that module will
be logged.
Logs a variable and its value unconditionally
Logs a message at the trace level.
Prints a 3-tuple of u8s, if at RUST_LOG=trace
Traces entry into a function, if at RUST_LOG=trace
Traces exit from a function, if at RUST_LOG=trace
Prints a u8 variable, if at RUST_LOG=trace
Logs a variable and its value, if at RUST_LOG=trace.
Logs a message at the warn level.
Structs
Metadata about a log message.
Builder for
Metadata
.The type returned by
from_str
when the string doesn’t match any of the log levels.The “payload” of a log message.
Builder for
Record
.The type returned by
set_logger
if set_logger
has already been called.Enums
An enum representing the available verbosity levels of the logger.
An enum representing the available verbosity level filters of the logger.
Constants
The statically resolved maximum log level.
Traits
A trait encapsulating the operations required of a logger.
Functions
Initializes the global logger with a pretty env logger.
Returns a reference to the logger.
Returns the current maximum log level.
Create a new builder with the default environment variables.
Sets the global logger to a
Box<Log>
.Sets the global logger to a
&'static Log
.A thread-unsafe version of
set_logger
.Sets the global maximum log level.