Struct spdlog::sink::StdStreamSink
source · [−]pub struct StdStreamSink { /* private fields */ }Expand description
A sink with a std stream as the target.
It writes styled text or plain text according to the given StyleMode.
Note that this sink always flushes the buffer once with each logging.
Implementations
sourceimpl StdStreamSink
impl StdStreamSink
Trait Implementations
sourceimpl Sink for StdStreamSink
impl Sink for StdStreamSink
sourcefn level_filter(&self) -> LevelFilter
fn level_filter(&self) -> LevelFilter
Gets the log level filter.
sourcefn set_level_filter(&self, level_filter: LevelFilter)
fn set_level_filter(&self, level_filter: LevelFilter)
Sets the log level filter.
sourcefn swap_formatter(&self, formatter: Box<dyn Formatter>) -> Box<dyn Formatter>
fn swap_formatter(&self, formatter: Box<dyn Formatter>) -> Box<dyn Formatter>
Sets the log level filter, and returns the old formatter.
sourcefn should_log(&self, level: Level) -> bool
fn should_log(&self, level: Level) -> bool
Determines if a log message with the specified level would be logged.
sourcefn set_formatter(&self, formatter: Box<dyn Formatter>)
fn set_formatter(&self, formatter: Box<dyn Formatter>)
Sets the formatter.
Auto Trait Implementations
impl !RefUnwindSafe for StdStreamSink
impl Send for StdStreamSink
impl Sync for StdStreamSink
impl Unpin for StdStreamSink
impl !UnwindSafe for StdStreamSink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more