Skip to main content

warn

Macro warn 

Source
macro_rules! warn {
    ($($arg:tt)+) => { ... };
}
Expand description

The level macros, reachable as crcbl_core::log::info! as well as at the crate root.

#[macro_export] puts a macro at the crate root and nowhere else, which would leave the macros and the sink they write to in two different places. Re-exporting them here means log is one module whichever half a caller wants — and it is the path the engine already used, so the crates calling crcbl::log::info! did not have to be rewritten to reach ours. The level macros, reachable as crcbl_core::log::info! as well as at the crate root.

#[macro_export] puts a macro at the crate root and nowhere else, which would leave the macros and the sink they write to in two different places. Re-exporting them here means log is one module whichever half a caller wants — and it is the path the engine already used, so the crates calling crcbl::log::info! did not have to be rewritten to reach ours. The level macros, reachable as crcbl_core::log::info! as well as at the crate root.

#[macro_export] puts a macro at the crate root and nowhere else, which would leave the macros and the sink they write to in two different places. Re-exporting them here means log is one module whichever half a caller wants — and it is the path the engine already used, so the crates calling crcbl::log::info! did not have to be rewritten to reach ours. Logs at Level::Warn: something that will surprise someone later.

crcbl_core::warn!("no config dir; values will not persist");