zerodds-security-logging
Security logging backends for the
ZeroDDS stack: LoggingPlugin implementations
for stderr, JSON lines, syslog and FanOut. Safety classification:
SAFE.
Spec mapping
| Spec | Section |
|---|---|
| OMG DDS-Security 1.1 | §8.6 (LoggingPlugin) |
| RFC 5424 | Syslog (UDP) |
What's inside
StderrLoggingPlugin— default for container deployments with a stdout/stderr collector (Loki, Vector, Fluentd).JsonLinesLoggingPlugin—application/x-ndjsonto a file. Rotation vialogrotate.SyslogLoggingPlugin— UDP to a syslog collector (facilityLOCAL0).FanOutLoggingPlugin— fan-out to multiple backends in parallel.
All backends filter events by LogLevel; default level Warning.
Layer position
Layer 4. Consumes zerodds-security (LoggingPlugin trait + LogLevel + SecurityError).
Quickstart
use ;
use ;
let stderr = new;
let json = open
.expect;
let fanout: = Boxnew;
Non-goals
- Syslog TCP (RFC 5425) and syslog TLS — a trusted segment is assumed.
- OpenTelemetry/OTLP — covered by
zerodds-observability-otlp. - Log rotation in the plugin — the job of
logrotate/journald.
Stability
1.0.0-rc.1. Public API + JSON-lines format + RFC-5424 encoding RC1-stable.
Tests
16 tests green.
License
Apache-2.0.