pub enum LogFormat {
CLF,
JSON,
CEF,
ELF,
W3C,
GELF,
}
Expand description
Enum representing the different log formats that can be used.
This enum allows the developer to specify the format in which log messages should be displayed.
Variants§
CLF
The log format is set to the Common Log Format (CLF)
JSON
The log format is set to the JSON format
CEF
The log format is set to the Common Event Format (CEF)
ELF
The log format is set to the Extended Log Format (ELF)
W3C
The log format is set to the W3C Extended Log File Format
GELF
The log format is set to the Graylog Extended Log Format (GELF)
Trait Implementations§
Source§impl Display for LogFormat
Implements Display trait for LogFormat
enum.
impl Display for LogFormat
Implements Display trait for LogFormat
enum.
This allows easy conversion of the log format enums to strings.
Source§impl PartialOrd for LogFormat
impl PartialOrd for LogFormat
impl Copy for LogFormat
impl Eq for LogFormat
impl StructuralPartialEq for LogFormat
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnwindSafe for LogFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more