Mstdlib-1.24.0
NSLog Module

Functions

M_log_error_t M_log_module_add_nslog (M_log_t *log, size_t max_queue_bytes, M_log_module_t **out_mod)
 

Detailed Description

Functions to enable logging to macOS/iOS logging subsytem (NSLog).

Only available when building for Apple platforms.

Function Documentation

◆ M_log_module_add_nslog()

M_log_error_t M_log_module_add_nslog ( M_log_t log,
size_t  max_queue_bytes,
M_log_module_t **  out_mod 
)

Add a module to output to macOS/iOS logging subsystem (if we're building for an Apple platform).

If the library wasn't compiled for an Apple device, this function will return M_LOG_MODULE_UNSUPPORTED when called, and no module will be added to the logger.

Parameters
[in]loglogger object
[in]max_queue_bytesmax size of queue used to buffer asynchronous writer to NSLog
[in]out_modhandle for created module, or NULL if there was an error
Returns
error code