0.01.00

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

Macros

#define OT_LOG_LEVEL_NONE   0
 Log levels. 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,...)
 This function outputs logs. More...
 
void otPlatLogv (otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list ap)
 This function outputs logs. More...
 

Detailed Description

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

Macro Definition Documentation

§ OT_LOG_LEVEL_NONE

#define OT_LOG_LEVEL_NONE   0

Log levels.

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

Function Documentation

§ otPlatLog()

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.

§ otPlatLogv()

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