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§
- 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§
- SetLogger
Error - The type returned by
set_logger
ifset_logger
has already been called.
Enums§
- Level
- An enum representing the available verbosity levels of the logger.