![]() |
0.01.00
|
This module includes the platform abstraction for the debug log service. More...
Macros | |
| #define | OT_LOG_LEVEL_NONE 0 |
| Log level None. More... | |
| #define | OT_LOG_LEVEL_CRIT 1 |
| Log level Critical. More... | |
| #define | OT_LOG_LEVEL_WARN 2 |
| Log level Warning. More... | |
| #define | OT_LOG_LEVEL_NOTE 3 |
| Log level Notice. More... | |
| #define | OT_LOG_LEVEL_INFO 4 |
| Log level Informational. More... | |
| #define | OT_LOG_LEVEL_DEBG 5 |
| Log level Debug. More... | |
Typedefs | |
| typedef uint8_t | otLogLevel |
| This type represents the log level. | |
| typedef enum otLogRegion | otLogRegion |
| This enumeration represents log regions. | |
Enumerations | |
| enum | otLogRegion { OT_LOG_REGION_API = 1, OT_LOG_REGION_MLE = 2, OT_LOG_REGION_ARP = 3, OT_LOG_REGION_NET_DATA = 4, OT_LOG_REGION_ICMP = 5, OT_LOG_REGION_IP6 = 6, OT_LOG_REGION_MAC = 7, OT_LOG_REGION_MEM = 8, OT_LOG_REGION_NCP = 9, OT_LOG_REGION_MESH_COP = 10, OT_LOG_REGION_NET_DIAG = 11, OT_LOG_REGION_PLATFORM = 12, OT_LOG_REGION_COAP = 13, OT_LOG_REGION_CLI = 14, OT_LOG_REGION_CORE = 15, OT_LOG_REGION_UTIL = 16 } |
| This enumeration represents log regions. More... | |
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... | |
This module includes the platform abstraction for the debug log service.
| #define OT_LOG_LEVEL_CRIT 1 |
Log level Critical.
| #define OT_LOG_LEVEL_DEBG 5 |
Log level Debug.
| #define OT_LOG_LEVEL_INFO 4 |
Log level Informational.
| #define OT_LOG_LEVEL_NONE 0 |
Log level None.
| #define OT_LOG_LEVEL_NOTE 3 |
Log level Notice.
| #define OT_LOG_LEVEL_WARN 2 |
Log level Warning.
| enum otLogRegion |
This enumeration represents log regions.
| 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 |