pub enum RecordFormat {
Json,
Simple,
Custom(Box<dyn Sync + Send + Fn(&Record<'_>) -> String>),
}
Expand description
Record formatting mode that determines how log records are structured
Variants§
Json
JSON format
Simple
simple log format <timestamp> [<target>] - <message>
Custom(Box<dyn Sync + Send + Fn(&Record<'_>) -> String>)
custom record formatter provided by client code
Auto Trait Implementations§
impl Freeze for RecordFormat
impl !RefUnwindSafe for RecordFormat
impl Send for RecordFormat
impl Sync for RecordFormat
impl Unpin for RecordFormat
impl !UnwindSafe for RecordFormat
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