A robust, industrial-grade Syslog library for ESP32 (S3, C3, and classic) with full RFC 5424 support and offline buffering.
ESP32Syslog is a lightweight yet powerful logging library that allows your IoT devices to communicate with standard Syslog servers (like rsyslog, Graylog, or Logstash). Unlike simpler libraries, it implements the modern RFC 5424 standard, allowing for structured data and precise telemetry.
- Dual Protocol Support: Choose between the classic RFC 3164 (BSD) and the modern RFC 5424.
- Smart Offline Buffer: Includes a circular buffer that stores up to 64 messages (configurable) in RAM if WiFi is lost. They are automatically flushed once the connection is restored.
- Structured Data (RFC 5424): Native support for metadata blocks (e.g.,
[hw@32473 ram="256000"]) for automated indexing in professional log collectors. - Non-Blocking Design: Optimized for the ESP32 network stack (
lwIP). It manages timing usingyield()and smart delays to preventENOMEM(Error 12) during high-frequency logging. - Injectable Serial Stream: Redirect logs to any
Streamobject (Serial, SoftwareSerial, or even SD card files) viasetSerial(). - Tag Auto-Extraction: Automatically extracts tags from
[Tag] Messageformat to populate theMSGIDfield in RFC 5424.
Add the following to your platformio.ini:
lib_deps =
jnovonj/ESP32Syslog