Mstdlib-1.24.0
|
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) |
Functions to enable logging to macOS/iOS logging subsytem (NSLog).
Only available when building for Apple platforms.
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.
[in] | log | logger object |
[in] | max_queue_bytes | max size of queue used to buffer asynchronous writer to NSLog |
[in] | out_mod | handle for created module, or NULL if there was an error |