#[repr(u8)]pub enum Format {
Show 14 variants
CLF = 0,
JSON = 1,
CEF = 2,
ELF = 3,
W3C = 4,
GELF = 5,
ApacheAccessLog = 6,
Logstash = 7,
Log4jXML = 8,
NDJSON = 9,
MCP = 10,
OTLP = 11,
Logfmt = 12,
ECS = 13,
}Expand description
Which of the 14 output formats a Record is
written in.
The variants and their order mirror rlg::LogFormat, which stays
in rlg because its parsing and validation need std. The
discriminant indexes the writer table in crate::record, so the
order is load-bearing.
Variants§
CLF = 0
Common Log Format (CLF)
JSON = 1
JavaScript Object Notation (JSON)
CEF = 2
Common Event Format (CEF)
ELF = 3
Extended Log Format (ELF)
W3C = 4
W3C Extended Log Format (W3C)
GELF = 5
Graylog Extended Log Format (GELF)
ApacheAccessLog = 6
Apache Access Log Format
Logstash = 7
Logstash Format
Log4jXML = 8
Log4j XML Format
NDJSON = 9
Network Data JSON (NDJSON)
MCP = 10
Model Context Protocol (MCP) - AI Native
OTLP = 11
OpenTelemetry Logging (OTLP) - AI Native
Logfmt = 12
Logfmt (key=value)
ECS = 13
Elastic Common Schema (ECS)
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Forget for Format
impl Freeze for Format
impl Move for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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