Enum mini_functions::hash::loggers::LogFormat
source · 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
impl Display for LogFormat
Implements Display trait for LogFormat
enum.
This allows easy conversion of the log format enums to strings.
source§impl PartialEq for LogFormat
impl PartialEq for LogFormat
source§impl PartialOrd for LogFormat
impl PartialOrd for LogFormat
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LogFormat
impl Eq for LogFormat
impl StructuralEq for LogFormat
impl StructuralPartialEq for LogFormat
Auto Trait Implementations§
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