ESPHome  2021.11.4
Data Structures | Enumerations | Variables
esphome::logger Namespace Reference

Data Structures

class  Logger
 
class  LoggerMessageTrigger
 

Enumerations

enum  UARTSelection { UART_SELECTION_UART0 = 0, UART_SELECTION_UART1, UART_SELECTION_UART2, UART_SELECTION_UART0_SWAP }
 Enum for logging UART selection. More...
 

Variables

const char *const LOG_LEVELS [] = {"NONE", "ERROR", "WARN", "INFO", "CONFIG", "DEBUG", "VERBOSE", "VERY_VERBOSE"}
 
const char *const UART_SELECTIONS [] = {"UART0", "UART1", "UART2"}
 
Loggerglobal_logger = nullptr
 

Enumeration Type Documentation

◆ UARTSelection

Enum for logging UART selection.

Advanced configuration (pin selection, etc) is not supported.

Enumerator
UART_SELECTION_UART0 
UART_SELECTION_UART1 
UART_SELECTION_UART2 
UART_SELECTION_UART0_SWAP 

Definition at line 24 of file logger.h.

Variable Documentation

◆ global_logger

Logger * esphome::logger::global_logger = nullptr

Definition at line 243 of file logger.cpp.

◆ LOG_LEVELS

const char* const esphome::logger::LOG_LEVELS[] = {"NONE", "ERROR", "WARN", "INFO", "CONFIG", "DEBUG", "VERBOSE", "VERY_VERBOSE"}

Definition at line 225 of file logger.cpp.

◆ UART_SELECTIONS

const char *const esphome::logger::UART_SELECTIONS = {"UART0", "UART1", "UART2"}

Definition at line 227 of file logger.cpp.