nRF5 SDK for Thread v0.11.0
Macros | Functions

This module includes the platform abstraction for the debug log service. More...

Macros

#define OT_LOG_LEVEL_NONE   0
 None. More...
 
#define OT_LOG_LEVEL_CRIT   1
 Critical.
 
#define OT_LOG_LEVEL_WARN   2
 Warning.
 
#define OT_LOG_LEVEL_INFO   3
 Info.
 
#define OT_LOG_LEVEL_DEBG   4
 Debug.
 

Functions

void otPlatLog (otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat,...)
 
void otPlatLogv (otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list ap)
 

Detailed Description

This module includes the platform abstraction for the debug log service.

Macro Definition Documentation

#define OT_LOG_LEVEL_NONE   0

None.

Log levels.

Implementation note: These exist as defines (not enums) so that embedded code can remove code at compile time via if/else/endif

Function Documentation

void otPlatLog ( otLogLevel  aLogLevel,
otLogRegion  aLogRegion,
const char *  aFormat,
  ... 
)

This function outputs logs.

Parameters
[in]aLogLevelThe log level.
[in]aLogRegionThe log region.
[in]aFormatA pointer to the format string.
[in]...Arguments for the format specification.
void otPlatLogv ( otLogLevel  aLogLevel,
otLogRegion  aLogRegion,
const char *  aFormat,
va_list  ap 
)

This function outputs logs.

Parameters
[in]aLogLevelThe log level.
[in]aLogRegionThe log region.
[in]aFormatA pointer to the format string.
[in]apva_list matching information for aFormat

Documentation feedback | Developer Zone | Subscribe | Updated