Diagnostic log settings.
More...
import"DiagLogSettings.idl";
Log levels.
Enumerator |
---|
LOG_LEVEL_NONE |
no log messages
|
LOG_LEVEL_ERR |
errors
|
LOG_LEVEL_WARN |
warnings + errors
|
LOG_LEVEL_INFO |
info + warnings + errors
|
LOG_LEVEL_DEBUG |
debug + info + warnings + errors
|
LOG_LEVEL_TRACE |
trace + debug + info + warnings + errors
|
int diag::DiagLogSettings::getLogLevelByCtxName |
( |
in string |
ctxName, |
|
|
out LogLevel |
logLevel |
|
) |
| |
Get the log level for a specific context.
- Parameters
-
ctxName | - context name |
logLevel | - result: log level |
- Returns
- ERR_NONE on success
-
ERR_UNKNOWN_LOG_CONTEXT_NAME if the context is unknown
-
ERR_UNKNOWN_LOG_LEVEL if log level cannot be mapped to JSON
vector<LogLevelEntry> diag::DiagLogSettings::getLogLevelsForAllCtxNames |
( |
| ) |
|
Get log levels of all contexts.
- Returns
- vector of LogLevelEntry structures
int diag::DiagLogSettings::setLogLevelByCtxName |
( |
in string |
ctxName, |
|
|
in LogLevel |
logLevel |
|
) |
| |
Set the log level for a specific context.
- Parameters
-
ctxName | - context name |
logLevel | - log level |
- Returns
- ERR_NONE on success
-
ERR_UNKNOWN_LOG_CONTEXT_NAME if the context is unknown
-
ERR_UNKNOWN_LOG_LEVEL if log level is unknown
int diag::DiagLogSettings::setLogLevelForAllCtxNames |
( |
in LogLevel |
logLevel | ) |
|
Set the log level for all contexts at once.
- Parameters
-
- Returns
- ERR_NONE on success
-
ERR_UNKNOWN_LOG_LEVEL if log level is unknown
The documentation for this interface was generated from the following file: