Function ntcore_sys::NT_AddLogger
[−]
[src]
pub unsafe extern "C" fn NT_AddLogger(
inst: NT_Inst,
data: *mut c_void,
func: NT_LogFunc,
min_level: c_uint,
max_level: c_uint
) -> NT_Logger
Add logger callback function. By default, log messages are sent to stderr; this function sends log messages to the provided callback function instead. The callback function will only be called for log messages with level greater than or equal to min_level and less than or equal to max_level; messages outside this range will be silently ignored.
@param inst instance handle @param data data pointer to pass to func @param func log callback function @param min_level minimum log level @param max_level maximum log level @return Logger handle