pub struct DefaultLogFormatter<W>{ /* private fields */ }
Expand description
Default formatter implementation
Implementations§
Source§impl<W> DefaultLogFormatter<W>
impl<W> DefaultLogFormatter<W>
Sourcepub fn new(
filters: LogFilterCriteria,
writer: W,
options: LogFormatterOptions,
) -> Self
pub fn new( filters: LogFilterCriteria, writer: W, options: LogFormatterOptions, ) -> Self
Creates a new DefaultLogFormatter with the given writer and options.
pub async fn expand_monikers( &mut self, getter: &impl InstanceGetter, ) -> Result<(), LogError>
pub async fn push_unfiltered_log( &mut self, log_entry: LogEntry, ) -> Result<LogProcessingResult, LogError>
Sourcepub fn new_from_args(cmd: &LogCommand, writer: W) -> Self
pub fn new_from_args(cmd: &LogCommand, writer: W) -> Self
Creates a new DefaultLogFormatter from command-line arguments.
Trait Implementations§
Source§impl<W> BootTimeAccessor for DefaultLogFormatter<W>
impl<W> BootTimeAccessor for DefaultLogFormatter<W>
Source§fn set_boot_timestamp(&mut self, boot_ts_nanos: Timestamp)
fn set_boot_timestamp(&mut self, boot_ts_nanos: Timestamp)
Sets the boot timestamp in nanoseconds since the Unix epoch.
Source§fn get_boot_timestamp(&self) -> Timestamp
fn get_boot_timestamp(&self) -> Timestamp
Returns the boot timestamp in nanoseconds since the Unix epoch.
Auto Trait Implementations§
impl<W> Freeze for DefaultLogFormatter<W>where
W: Freeze,
impl<W> RefUnwindSafe for DefaultLogFormatter<W>where
W: RefUnwindSafe,
impl<W> Send for DefaultLogFormatter<W>where
W: Send,
impl<W> Sync for DefaultLogFormatter<W>where
W: Sync,
impl<W> Unpin for DefaultLogFormatter<W>where
W: Unpin,
impl<W> UnwindSafe for DefaultLogFormatter<W>where
W: UnwindSafe,
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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