Expand description
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§
- Logs a message at the debug level using the default target.
- Logs a message at the debug level using the specified target.
- Logs a message at the error level using the default target.
- Logs a message at the error level using the specified target.
- Logs a message at the info level using the default target.
- Logs a message at the info level using the specified target.
- Determines if a message logged at the specified level and with the default target will be logged.
- Determines if a message logged at the specified level and with the specified target will be logged.
- Logs a message at the trace level using the default target.
- Logs a message at the trace level using the specified target.
- Logs a message at the warn level using the default target.
- Logs a message at the warn level using the specified target.
Structs§
- The type returned by
set_logger
ifset_logger
has already been called.
Enums§
- An enum representing the available verbosity levels of the logger.