Function rustwlc::log_set_default_handler [] [src]

pub fn log_set_default_handler()

Sets the wlc log callback to a simple function that prints to console.

Not calling any log_set_handler will have no logging, use this or log_set_handler with a callback to use wlc logging.

Example

use rustwlc;

let interface = rustwlc::interface::WlcInterface::new();
rustwlc::log_set_default_handler();

if let Some(run_wlc) = rustwlc::init(interface) {
     run_wlc();
}
else {
    panic!("Unable to initialize wlc!");
}