pub struct JsonLinesLoggingPlugin { /* private fields */ }Expand description
Writes security events as JSON lines to a file.
Each line is a standalone JSON object:
{"ts":"2026-04-24T11:22:33Z","level":"CRITICAL","participant":"aabbcc...","category":"auth.handshake.failed","message":"bad cert"}Typical use: auditd/filebeat/promtail collects the
file. This plugin itself performs no log rotation —
that is the job of logrotate(8) or 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