Crate ckb_logger[][src]

CKB logging facade.

This crate is a wrapper of the crate log.

The major issue of the crate log is that the macro like trace!(target: "global", "message") is unfriendly to cargo fmt. So this crate disallow using target: in the basic logging macros and add another group of macros to support both target and message, for example, trace_target!("global", "message").

Re-exports

pub use log as internal;

Macros

debug

Logs a message at the debug level using the default target.

debug_target

Logs a message at the debug level using the specified target.

error

Logs a message at the error level using the default target.

error_target

Logs a message at the error level using the specified target.

info

Logs a message at the info level using the default target.

info_target

Logs a message at the info level using the specified target.

log_enabled

Determines if a message logged at the specified level and with the default target will be logged.

log_enabled_target

Determines if a message logged at the specified level and with the specified target will be logged.

trace

Logs a message at the trace level using the default target.

trace_target

Logs a message at the trace level using the specified target.

warn

Logs a message at the warn level using the default target.

warn_target

Logs a message at the warn level using the specified target.

Structs

SetLoggerError

The type returned by set_logger if set_logger has already been called.

Enums

Level

An enum representing the available verbosity levels of the logger.