pub unsafe extern "C" fn c4log_writeToCallback(
level: C4LogLevel,
callback: Option<unsafe extern "C" fn(arg1: C4LogDomain, arg2: C4LogLevel, arg3: *const c_char, arg4: *mut __va_list_tag)>,
preformatted: bool,
)Expand description
Registers (or unregisters) a log callback, and sets the minimum log level to report.
Before this is called, a default callback is used that writes to stderr at the Info level.
NOTE: this setting is global to the entire process.
@param level The minimum level of message to log.
@param callback The logging callback, or NULL to disable logging entirely.
@param preformatted If true, log messages will be formatted before invoking the callback,
so the fmt parameter will be the actual string to log, and the args parameter
will be NULL.