nRF5 SDK for Thread and Zigbee v4.2.0
Functions
Logging

This module includes OpenThread logging related definitions. More...

Functions

otLogLevel otLoggingGetLevel (void)
 
otError otLoggingSetLevel (otLogLevel aLogLevel)
 

Detailed Description

This module includes OpenThread logging related definitions.

Function Documentation

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.
otError otLoggingSetLevel ( otLogLevel  aLogLevel)

This function sets the log level.

Note
This function requires OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE=1.
Parameters
[in]aLogLevelThe log level.
Return values
OT_ERROR_NONESuccessfully updated log level.
OT_ERROR_INVALID_ARGSLog level value is invalid.

Documentation feedback | Developer Zone | Subscribe | Updated