Function dummy_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;

// An example where only the default log handler is registered
rustwlc::log_set_default_handler();

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