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

Data Structures

class  Logger
 
class  LoggerMessageTrigger
 

Enumerations

enum  UARTSelection {
  UART_SELECTION_DEFAULT = 0, UART_SELECTION_UART0 = 0, UART_SELECTION_UART1, UART_SELECTION_UART2,
  UART_SELECTION_UART0 = 0, UART_SELECTION_UART1, UART_SELECTION_UART2, UART_SELECTION_USB_CDC,
  UART_SELECTION_USB_SERIAL_JTAG, UART_SELECTION_UART0_SWAP, UART_SELECTION_USB_CDC
}
 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 []
 
Loggerglobal_logger = nullptr
 

Enumeration Type Documentation

◆ UARTSelection

Enum for logging UART selection.

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

Enumerator
UART_SELECTION_DEFAULT 
UART_SELECTION_UART0 
UART_SELECTION_UART1 
UART_SELECTION_UART2 
UART_SELECTION_UART0 
UART_SELECTION_UART1 
UART_SELECTION_UART2 
UART_SELECTION_USB_CDC 
UART_SELECTION_USB_SERIAL_JTAG 
UART_SELECTION_UART0_SWAP 
UART_SELECTION_USB_CDC 

Definition at line 33 of file logger.h.

Variable Documentation

◆ global_logger

Logger * esphome::logger::global_logger = nullptr

Definition at line 429 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 387 of file logger.cpp.

◆ UART_SELECTIONS

const char *const esphome::logger::UART_SELECTIONS
Initial value:
= {
"UART0", "UART1",
#if !defined(USE_ESP32_VARIANT_ESP32C3) && !defined(USE_ESP32_VARIANT_ESP32C6) && \
!defined(USE_ESP32_VARIANT_ESP32S2) && !defined(USE_ESP32_VARIANT_ESP32S3) && !defined(USE_ESP32_VARIANT_ESP32H2)
"UART2",
#endif
#if defined(USE_ESP_IDF)
#if defined(USE_ESP32_VARIANT_ESP32S2) || defined(USE_ESP32_VARIANT_ESP32S3)
"USB_CDC",
#endif
#if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_ESP32_VARIANT_ESP32S3)
"USB_SERIAL_JTAG",
#endif
#endif
}

Definition at line 389 of file logger.cpp.