Struct cursive_logger_view::CursiveLogWriter
source · pub struct CursiveLogWriter { /* private fields */ }Expand description
The flexi_logger LogWriter implementation for the FlexiLoggerView.
Use the cursive_flexi_logger function to create an instance of this struct.
Trait Implementations§
source§impl FormattableLogWriter for Box<CursiveLogWriter>
impl FormattableLogWriter for Box<CursiveLogWriter>
source§fn with_format(self, new_format: Vec<LogItems>) -> Self
fn with_format(self, new_format: Vec<LogItems>) -> Self
Set up a custom log format
source§fn with_time_format(self, new_format: &str) -> Self
fn with_time_format(self, new_format: &str) -> Self
Set up a custom format for a time
source§impl LogWriter for CursiveLogWriter
impl LogWriter for CursiveLogWriter
source§fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
Writes out a log line. Read more
source§fn max_log_level(&self) -> LevelFilter
fn max_log_level(&self) -> LevelFilter
Provides the maximum log level that is to be written.
source§fn format(
&mut self,
format: fn(_: &mut dyn Write, _: &mut DeferredNow, _: &Record<'_>) -> Result<(), Error>
)
fn format( &mut self, format: fn(_: &mut dyn Write, _: &mut DeferredNow, _: &Record<'_>) -> Result<(), Error> )
Sets the format function. Read more
source§fn reopen_output(&self) -> Result<(), FlexiLoggerError>
fn reopen_output(&self) -> Result<(), FlexiLoggerError>
Re-open the current output, if meaningful. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CursiveLogWriter
impl Send for CursiveLogWriter
impl Sync for CursiveLogWriter
impl Unpin for CursiveLogWriter
impl UnwindSafe for CursiveLogWriter
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