33 if ((
unsigned) level <= 7) {
40 timestamp = now.strftime(
"%b %e %H:%M:%S");
46 size_t len = message_len;
48 if (this->
strip_ && message[0] == 0x1B &&
len > 11) {
const std::string & get_name() const
Get the name of this Application set by pre_setup().
udp::UDPComponent * parent_
void add_log_listener(LogListener *listener)
Register a log listener to receive log messages.
void on_log(uint8_t level, const char *tag, const char *message, size_t message_len) override
time::RealTimeClock * time_
void log_(int level, const char *tag, const char *message, size_t message_len) const
ESPTime now()
Get the time in the currently defined timezone.
void send_packet(const uint8_t *data, size_t size)
constexpr int LOG_LEVEL_TO_SYSLOG_SEVERITY[]
Providing packet encoding functions for exchanging data with a remote host.
std::string str_sprintf(const char *fmt,...)
Application App
Global storage of Application pointer - only one Application can exist.