This module includes OpenThread logging related definitions.
Functions | |
otLogLevel | otLoggingGetLevel (void) |
This function returns the current log level. | |
otError | otLoggingSetLevel (otLogLevel aLogLevel) |
This function sets the log level. |
Detailed Description
This module includes OpenThread logging related definitions.
Function Documentation
◆ otLoggingGetLevel()
otLogLevel otLoggingGetLevel | ( | void |
| ) |
This function returns the current log level.
If dynamic log level feature OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE
is enabled, this function returns the currently set dynamic log level. Otherwise, this function returns the build-time configured log level.
- Returns
- The log level.
◆ otLoggingSetLevel()
otError otLoggingSetLevel | ( | otLogLevel | aLogLevel | ) |
This function sets the log level.
- Note
- This function requires
OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE=1
.
- Parameters
-
[in] aLogLevel
The log level.
- Return values
-
OT_ERROR_NONE
Successfully updated log level. OT_ERROR_INVALID_ARGS
Log level value is invalid.