nRF5 SDK for Thread and Zigbee v3.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_ENABLE_DYNAMIC_LOG_LEVEL 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.

Parameters
[in]aLogLevelThe log level.
Return values
OT_ERROR_NONEThe log level was changed successfully.
OT_ERROR_DISABLED_FEATUREThe dynamic log level feature is not supported. (see OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL configuration option).

Documentation feedback | Developer Zone | Subscribe | Updated