pub struct JsonLinesLoggingPlugin { /* private fields */ }Expand description
Schreibt Security-Events als JSON-Lines in eine Datei.
Jede Zeile ist ein eigenstaendiges JSON-Objekt:
{"ts":"2026-04-24T11:22:33Z","level":"CRITICAL","participant":"aabbcc...","category":"auth.handshake.failed","message":"bad cert"}Typische Nutzung: auditd/filebeat/promtail kollektiert das
File. Dieses Plugin selbst fuehrt keine Log-Rotation durch —
das ist Aufgabe von logrotate(8) oder systemd-journald.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for JsonLinesLoggingPlugin
impl RefUnwindSafe for JsonLinesLoggingPlugin
impl Send for JsonLinesLoggingPlugin
impl Sync for JsonLinesLoggingPlugin
impl Unpin for JsonLinesLoggingPlugin
impl UnsafeUnpin for JsonLinesLoggingPlugin
impl UnwindSafe for JsonLinesLoggingPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more