nRF5 SDK for Thread v0.10.0
Macros | Typedefs | Enumerations | 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.
 

Typedefs

typedef uint8_t otLogLevel
 
typedef enum otLogRegion otLogRegion
 

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
}
 

Functions

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

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.

Typedef Documentation

typedef enum otLogRegion otLogRegion

This enum represents log regions.

Enumeration Type Documentation

This enum represents log regions.

Enumerator
OT_LOG_REGION_API 

OpenThread API.

OT_LOG_REGION_MLE 

MLE.

OT_LOG_REGION_ARP 

EID-to-RLOC mapping.

OT_LOG_REGION_NET_DATA 

Network Data.

OT_LOG_REGION_ICMP 

ICMPv6.

OT_LOG_REGION_IP6 

IPv6.

OT_LOG_REGION_MAC 

IEEE 802.15.4 MAC.

OT_LOG_REGION_MEM 

Memory.

OT_LOG_REGION_NCP 

NCP.

OT_LOG_REGION_MESH_COP 

Mesh Commissioning Protocol.

OT_LOG_REGION_NET_DIAG 

Network Diagnostic.

OT_LOG_REGION_PLATFORM 

Platform.

OT_LOG_REGION_COAP 

CoAP.

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.

Documentation feedback | Developer Zone | Subscribe | Updated