Macro the_logger::log_warning
source · macro_rules! log_warning { ($logger:expr, $($msg:tt)*) => { ... }; }
Expand description
Description
Logs a warning log message in the log file.
Parameters
A reference to TheLogger’s instance and the log message itself
Example
use the_logger::{log_warning, TheLogger};
async fn exec_log() {
let logger = TheLogger::instance();
log_warning!(logger, "This is a warning log message");
}