Struct fil_logger::SingleFileWriter
source · [−]pub struct SingleFileWriter { /* private fields */ }
Expand description
A LogWriter
that accepts an open File
Implementations
Trait Implementations
sourceimpl LogWriter for SingleFileWriter
impl LogWriter for SingleFileWriter
sourcefn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
Writes out a log line. Read more
sourcefn format(&mut self, format: FormatFunction)
fn format(&mut self, format: FormatFunction)
Sets the format function. Read more
sourcefn max_log_level(&self) -> LevelFilter
fn max_log_level(&self) -> LevelFilter
Provides the maximum log level that is to be written.
Auto Trait Implementations
impl RefUnwindSafe for SingleFileWriter
impl Send for SingleFileWriter
impl Sync for SingleFileWriter
impl Unpin for SingleFileWriter
impl UnwindSafe for SingleFileWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more