nRF5 SDK v12.1.0
Macros
Logging configuration

Macros

#define NRF_LOG_ENABLED
 Logging module for nRF5 SDK. More...
 
#define NRF_LOG_USES_COLORS
 If enabled then ANSI escape code for colors is prefixed to every string. More...
 
#define NRF_LOG_COLOR_DEFAULT
 ANSI escape code prefix. More...
 
#define NRF_LOG_ERROR_COLOR
 ANSI escape code prefix. More...
 
#define NRF_LOG_WARNING_COLOR
 ANSI escape code prefix. More...
 
#define NRF_LOG_DEFAULT_LEVEL
 Default Severity level. More...
 
#define NRF_LOG_DEFERRED
 Enable deffered logger. More...
 
#define NRF_LOG_DEFERRED_BUFSIZE
 Size of the buffer for logs in words. More...
 
#define NRF_LOG_USES_TIMESTAMP
 Enable timestamping. More...
 

Detailed Description

Macro Definition Documentation

#define NRF_LOG_COLOR_DEFAULT

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_DEFAULT_LEVEL

Default Severity level.

Following options are available:

  • 0 - Off
  • 1 - Error
  • 2 - Warning
  • 3 - Info
  • 4 - Debug
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_DEFERRED

Enable deffered logger.

Log data is buffered and can be processed in idle.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_DEFERRED_BUFSIZE

Size of the buffer for logs in words.

Must be power of 2

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_ENABLED

Logging module for nRF5 SDK.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_ERROR_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_USES_COLORS

If enabled then ANSI escape code for colors is prefixed to every string.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_USES_TIMESTAMP

Enable timestamping.

Function for getting the timestamp is provided by the user

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_WARNING_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated