Expand description
Fluent MessageBuilder for constructing RFC 5424 syslog messages.
§Example
use logfence_client::{MessageBuilder, UnixTransport};
use logfence_proto::syslog::{Facility, Severity};
let transport = UnixTransport::new("/run/logfenced/logfenced.sock", 65536);
MessageBuilder::new(Facility::Local0, Severity::Info)
.app_name("myapp")
.msgid("REQUEST")
.kv("user_id", 42_u32)?
.kv("action", "login")?
.send(&transport)
.await?;Structs§
- Message
Builder - Fluent builder for a single syslog message with a JSON key-value payload.
Constants§
- CEE_
COOKIE - The MITRE CEE cookie prepended to the MSG field in CEE-formatted messages.
Functions§
- now_
rfc3339 - Return the current UTC time as an RFC 3339 string with seconds precision,
e.g.
"2026-05-14T12:00:00Z".