Function cwipc_log_configure
Defined in File api.h
Function Documentation
-
void cwipc_log_configure(int level, cwipc_log_callback_t callback)
configure logging. The environment variable CWIPC_LOGGING can also be used to set the log level. Subsequent calls to this function will override previous settings. Ensure to clear callback before cleanup when calling from other languages.
- Parameters:
level – The maximum log level in which we are interested. CWIPC_LOG_LEVEL_NONE keeps log-level as-is.
callback – A callback function to receive log messages. If NULL, logging to callback is disabled and logging goes to stderr.