Macro plog::warn

source ·
macro_rules! warn {
    ($($args:tt)+) => { ... };
}
Expand description

A warn logger, for things that don’t affect the program flow

use std::env;

if env::var("LOG_FILEPATH").is_err() {
    plog::warn!("LOG_FILEPATH is disabled")
}