ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::syslog Namespace Reference

Data Structures

class  Syslog
 

Enumerations

enum  SyslogFormat : uint8_t { SYSLOG_FORMAT_RFC3164 , SYSLOG_FORMAT_RFC5424 }
 

Functions

size_t append_redacted_message (char *buf, size_t size, size_t pos, const char *message, size_t len)
 Append len bytes of message to buf at pos, replacing every LOG_SECRET() region with "[redacted]".
 

Enumeration Type Documentation

◆ SyslogFormat

Enumerator
SYSLOG_FORMAT_RFC3164 
SYSLOG_FORMAT_RFC5424 

Definition at line 10 of file esphome_syslog.h.

Function Documentation

◆ append_redacted_message()

size_t esphome::syslog::append_redacted_message ( char * buf,
size_t size,
size_t pos,
const char * message,
size_t len )

Append len bytes of message to buf at pos, replacing every LOG_SECRET() region with "[redacted]".

Returns the new position, capped at size like the other buf_append helpers.

Definition at line 42 of file esphome_syslog.cpp.