[−][src]Module witchcraft_log::bridge
Support for forwarding messages from the log
crate to witchcraft-log
.
Even if your application uses this crate for logging, many of its dependencies probably use the log
crate.
This module can be used to configure the log
crate to forward its messages to witchcraft-log
.
Examples
use witchcraft_log::bridge::BridgedLogger; use witchcraft_log::LevelFilter; witchcraft_log::set_logger(&MyWitchcraftLogger); witchcraft_log::set_max_level(LevelFilter::Warn); log::set_logger(&BridgedLogger); // Don't forget to adjust the log crate's max level along with witchcraft_log's! // That won't happen automatically. witchcraft_log::bridge::set_max_level(LevelFilter::Warn);
Structs
BridgedLogger | A |
Functions
set_max_level | Sets the |