EX-Display
EX-Display
Loading...
Searching...
No Matches
/home/runner/work/EX-Display/EX-Display/Logger.h File Reference
#include <Arduino.h>
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Logger
 Class to enable simple logging to a Stream object with different log levels This enables embedding permanent error, warn, info, and debug messages in the software, with the user defining the log level at compile time if more diagnostics are required. More...
 

Macros

#define LOG(level, ...)
 Macro for shorter logging calls, assumes a pointer to a Logger instance called _logger LOG(LogLevel, "Message");.
 

Enumerations

enum  LogLevel {
  LOG_MESSAGE , LOG_NONE , LOG_ERROR , LOG_WARN ,
  LOG_INFO , LOG_DEBUG
}
 Define valid log levels in ascending order. More...
 

Macro Definition Documentation

◆ LOG

#define LOG (   level,
  ... 
)
Value:
if (_logger) \
_logger->log(level, __VA_ARGS__)

Macro for shorter logging calls, assumes a pointer to a Logger instance called _logger LOG(LogLevel, "Message");.

Enumeration Type Documentation

◆ LogLevel

enum LogLevel

Define valid log levels in ascending order.

Enumerator
LOG_MESSAGE 
LOG_NONE 
LOG_ERROR 
LOG_WARN 
LOG_INFO 
LOG_DEBUG