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) |
This module includes the platform abstraction for the debug log service.
#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
void otPlatLog | ( | otLogLevel | aLogLevel, |
otLogRegion | aLogRegion, | ||
const char * | aFormat, | ||
... | |||
) |
This function outputs logs.
[in] | aLogLevel | The log level. |
[in] | aLogRegion | The log region. |
[in] | aFormat | A 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.
[in] | aLogLevel | The log level. |
[in] | aLogRegion | The log region. |
[in] | aFormat | A pointer to the format string. |
[in] | ap | va_list matching information for aFormat |