Mstdlib-1.24.0
|
Functions | |
M_log_error_t | M_log_module_add_stream (M_log_t *log, M_stream_type_t type, size_t max_queue_bytes, M_log_module_t **out_mod) |
Functions to enable logging to streams (stdout, stderr).
Not available when building for Android platform.
M_log_error_t M_log_module_add_stream | ( | M_log_t * | log, |
M_stream_type_t | type, | ||
size_t | max_queue_bytes, | ||
M_log_module_t ** | out_mod | ||
) |
Add a module to output to a standard stream (stdout, stderr).
If the library was compiled on a platform that doesn't allow console output (e.g., Android), this function will return M_LOG_MODULE_UNSUPPORTED when called, and no module will be added to the logger.
[in] | log | logger object |
[in] | type | what stream to output to (stdout, stderr) |
[in] | max_queue_bytes | max size of queue used to buffer asynchronous writes to the stream |
[in] | out_mod | handle for created module, or NULL if there was an error |