Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_LogPlainText.h File Reference
Include dependency graph for cs_LogPlainText.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _FILE   (sizeof(__FILE__) > 30 ? __FILE__ + (sizeof(__FILE__) - 30 - 1) : __FILE__)
 
#define _log(level, addNewLine, fmt, ...)
 
#define _logArray(level, addNewLine, pointer, size, ...)
 

Functions

void cs_log_printf (const char *str,...)
 

Variables

static bool _logPrefixPlainText = true
 

Macro Definition Documentation

◆ _FILE

#define _FILE   (sizeof(__FILE__) > 30 ? __FILE__ + (sizeof(__FILE__) - 30 - 1) : __FILE__)

◆ _log

#define _log (   level,
  addNewLine,
  fmt,
  ... 
)
Value:
if (level <= SERIAL_VERBOSITY) { \
cs_log_printf("[%-30.30s : %-4d] ", _FILE, __LINE__); \
} \
cs_log_printf(fmt, ##__VA_ARGS__); \
if (addNewLine) { \
cs_log_printf("\r\n"); \
} \
_logPrefixPlainText = addNewLine; \
}
#define _FILE
Definition: cs_LogPlainText.h:16
static bool _logPrefixPlainText
Definition: cs_LogPlainText.h:13
#define SERIAL_VERBOSITY
Definition: cs_SerialTypes.h:32

◆ _logArray

#define _logArray (   level,
  addNewLine,
  pointer,
  size,
  ... 
)

Function Documentation

◆ cs_log_printf()

void cs_log_printf ( const char *  str,
  ... 
)

Variable Documentation

◆ _logPrefixPlainText

bool _logPrefixPlainText = true
static