Module log::macros[src]

Logging macros

Macros

debug!

A convenience macro for logging at the debug log level. This macro can also be omitted at compile time by passing --cfg ndebug to the compiler. If this option is not passed, then debug statements will be compiled.

error!

A convenience macro for logging at the error log level.

info!

A convenience macro for logging at the info log level.

log!

The standard logging macro

log_enabled!

A macro to test whether a log level is enabled for the current module.

warn!

A convenience macro for logging at the warning log level.