|
CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This file contains the definitions of the functions that comprise the CDI Core SDK's API. More...
#include "cdi_log_api.h"#include <assert.h>#include <stdio.h>#include <stdarg.h>#include "configuration.h"#include "cdi_logger_api.h"#include "cdi_os_api.h"#include "internal.h"Functions | |
| CdiReturnStatus | CdiLogComponentEnable (CdiConnectionHandle handle, CdiLogComponent component, bool enable) |
| CdiReturnStatus | CdiLogComponentEnableGlobal (CdiLogComponent component, bool enable) |
| bool | CdiLogComponentIsEnabled (CdiConnectionHandle handle, CdiLogComponent component) |
| CdiReturnStatus | CdiLogLevelSet (CdiConnectionHandle handle, CdiLogComponent component, CdiLogLevel level) |
| CdiReturnStatus | CdiLogLevelSetGlobal (CdiLogComponent component, CdiLogLevel level) |
| CdiReturnStatus | CdiLogStderrEnable (bool enable, CdiLogLevel level) |
| CdiLogHandle | CdiLogGlobalGet (void) |
This file contains the definitions of the functions that comprise the CDI Core SDK's API.
| CdiReturnStatus CdiLogComponentEnable | ( | CdiConnectionHandle | handle, |
| CdiLogComponent | component, | ||
| bool | enable ) |
Enable or disable specific log component messages for a specific connection or the global logger. All components are disabled by default.
| handle | Connection handle returned by Cdi...TxCreate() API functions. If NULL, then the global logger is used. |
| component | Type of component to enable/disable log message generation. |
| enable | True to enable, False to disable. |
| CdiReturnStatus CdiLogComponentEnableGlobal | ( | CdiLogComponent | component, |
| bool | enable ) |
Enable or disable specific log component messages globally for all logs. All components are disabled by default.
| component | Type of component to enable/disable log message generation. |
| enable | To enable use true, otherwise use false. |
| bool CdiLogComponentIsEnabled | ( | CdiConnectionHandle | handle, |
| CdiLogComponent | component ) |
Determine if a component is enabled for logging for a specific connection or the global logger.
| handle | Connection handle returned by Cdi...TxCreate() API functions. If NULL, then the global logger is used. |
| component | Type of component to check. |
| CdiLogHandle CdiLogGlobalGet | ( | void | ) |
Get the handle to the global log set by the CdiCoreInitialize() API.
| CdiReturnStatus CdiLogLevelSet | ( | CdiConnectionHandle | handle, |
| CdiLogComponent | component, | ||
| CdiLogLevel | level ) |
Set log level for a component for a specific connection or the global logger. Log messages of the specified level or lower are generated. The default log level is set to kLogInfo.
| handle | Connection handle returned by Cdi...TxCreate() API functions. If NULL, then the global logger is used. |
| component | Type of component to set log level. |
| level | Log level to set. |
| CdiReturnStatus CdiLogLevelSetGlobal | ( | CdiLogComponent | component, |
| CdiLogLevel | level ) |
Set log level for a component for all logs. Log messages of the specified level or lower are generated. The default log level is set to kLogInfo.
| component | Type of component to set log level. |
| level | Log level to set. |
| CdiReturnStatus CdiLogStderrEnable | ( | bool | enable, |
| CdiLogLevel | level ) |
Send log messages to stderr in addition to log files, if log files are enabled.
| enable | Use true to enable, false to disable. |
| level | Log level to enable output to stderr. |