[][src]Macro wlroots::wlr_log

macro_rules! wlr_log {
    ($verb: expr, $($msg:tt)*) => { ... };
}

Logs a message using wlroots' logging capability.

Example:

This example is not tested
#[macro_use]
use wlroots::log::{init_logging, L_DEBUG, L_ERROR};

// Call this once, at the beginning of your program.
init_logging(WLR_DEBUG, None);

wlr_log!(L_DEBUG, "Hello world");
wlr_log!(L_ERROR, "Could not {:#?} the {}", foo, bar);