Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
Diagnostic log settings. More...
Classes | |
struct | LogLevelEntry |
An entry containing a context name and its associated context. More... | |
Public Types | |
enum | LogLevel { LOG_LEVEL_NONE , LOG_LEVEL_ERR , LOG_LEVEL_WARN , LOG_LEVEL_INFO , LOG_LEVEL_DEBUG , LOG_LEVEL_TRACE } |
Log levels. More... | |
Public Member Functions | |
void | resetLogLevelsForAllCtxNames () |
Reset log levels of all contexts to default. | |
vector< LogLevelEntry > | getLogLevelsForAllCtxNames () |
Get log levels of all contexts. | |
int | setLogLevelForAllCtxNames (in LogLevel logLevel) |
Set the log level for all contexts at once. | |
int | getLogLevelByCtxName (in string ctxName, out LogLevel logLevel) |
Get the log level for a specific context. | |
int | setLogLevelByCtxName (in string ctxName, in LogLevel logLevel) |
Set the log level for a specific context. | |
Public Attributes | |
constant int | ERR_NONE = 0 |
no error | |
constant int | ERR_UNKNOWN_LOG_CONTEXT_NAME = 1 |
unknown log context | |
constant int | ERR_UNKNOWN_LOG_LEVEL = 2 |
unknown log level | |
Diagnostic log settings.
Definition at line 15 of file DiagLogSettings.idl.
Log levels.
Definition at line 18 of file DiagLogSettings.idl.
int diag::DiagLogSettings::getLogLevelByCtxName | ( | in string | ctxName, |
out LogLevel | logLevel | ||
) |
Get the log level for a specific context.
ctxName | - context name |
logLevel | - result: log level |
vector< LogLevelEntry > diag::DiagLogSettings::getLogLevelsForAllCtxNames | ( | ) |
Get log levels of all contexts.
int diag::DiagLogSettings::setLogLevelByCtxName | ( | in string | ctxName, |
in LogLevel | logLevel | ||
) |
Set the log level for a specific context.
ctxName | - context name |
logLevel | - log level |
int diag::DiagLogSettings::setLogLevelForAllCtxNames | ( | in LogLevel | logLevel | ) |
Set the log level for all contexts at once.
logLevel | - log level |
constant int diag::DiagLogSettings::ERR_NONE = 0 |
no error
Definition at line 33 of file DiagLogSettings.idl.
constant int diag::DiagLogSettings::ERR_UNKNOWN_LOG_CONTEXT_NAME = 1 |
unknown log context
Definition at line 34 of file DiagLogSettings.idl.
constant int diag::DiagLogSettings::ERR_UNKNOWN_LOG_LEVEL = 2 |
unknown log level
Definition at line 35 of file DiagLogSettings.idl.