pub fn hook_log_handler(handler: fn(level: LogLevel, message: &str)) -> u32
register/hook a log handler. returns the handler id.