19#ifndef DETERMINISTICESPASYNCWEBSERVER_LOGBUF_H
20#define DETERMINISTICESPASYNCWEBSERVER_LOGBUF_H
26#if DETWS_ENABLE_LOGBUF
32 static constexpr uint8_t DETWS_LOG_DEBUG = 0;
33 static constexpr uint8_t DETWS_LOG_INFO = 1;
34 static constexpr uint8_t DETWS_LOG_WARN = 2;
35 static constexpr uint8_t DETWS_LOG_ERROR = 3;
39typedef void (*detws_log_trap_fn)(uint8_t level,
const char *line);
42void detws_logbuf_reset(
void);
45void detws_log(uint8_t level,
const char *msg);
48uint16_t detws_log_count(
void);
51const char *detws_log_at(uint16_t i);
57int detws_log_dump(
char *out,
size_t cap);
60void detws_log_set_trap(uint8_t threshold, detws_log_trap_fn cb);
User-facing configuration for DeterministicESPAsyncWebServer.