Skip to main content

otPlatLogHandleLogLevelChanged

Function otPlatLogHandleLogLevelChanged 

Source
pub unsafe extern "C" fn otPlatLogHandleLogLevelChanged(
    aInstance: *mut otInstance,
    aLogLevel: otLogLevel,
)
Expand description

Handles OpenThread instance-specific log level changes.

This platform function is optional. An empty weak implementation is provided by OpenThread core.

This platform function is called whenever the instance-specific log level changes:

  • In a single-instance configuration, this is called along with otPlatLogHandleLevelChanged().
  • In a multi-instance configuration, if OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE is used, this is called when the instance-specific log level changes.

@param[in] aInstance A pointer to the OpenThread instance. @param[in] aLogLevel The new OpenThread log level for the instance.