4#ifdef USE_RP2_CRASH_HANDLER
15 switch (this->
uart_) {
31 ESP_LOGI(TAG,
"Log initialized");
32#ifdef USE_RP2_CRASH_HANDLER
38 switch (this->
uart_) {
40 return LOG_STR(
"UART0");
42 return LOG_STR(
"UART1");
43#ifdef USE_LOGGER_USB_CDC
45 return LOG_STR(
"USB_CDC");
48 return LOG_STR(
"UNKNOWN");
52#ifdef USE_CRASH_HANDLER
const LogString * get_uart_selection_()
void pre_setup()
Set up this component.
bool crash_log_pending()
Whether a crash record from before this boot is waiting to be reported.
void log_crash_to_client()
Log the previous crash for a client that just subscribed to the logs.
ESPHOME_LOG_TAG(TAG, "logger")
bool crash_handler_has_data()
Returns true if crash data was found this boot, reading it first if needed.
void crash_handler_log()
Log crash data if a crash was detected on previous boot.