Struct spdlog::sink::WinDebugSink
source · pub struct WinDebugSink { /* private fields */ }
Available on Windows and crate feature
native
only.Expand description
A sink with a win32 API OutputDebugStringW
as the target.
Implementations
sourceimpl WinDebugSink
impl WinDebugSink
sourcepub fn builder() -> WinDebugSinkBuilder
pub fn builder() -> WinDebugSinkBuilder
Constructs a builder of WinDebugSink
.
sourcepub fn new() -> WinDebugSink
👎Deprecated since 0.3.0: it may be removed in the future, use WinDebugSink::builder()
instead
pub fn new() -> WinDebugSink
WinDebugSink::builder()
insteadConstructs a WinDebugSink
.
Trait Implementations
sourceimpl Sink for WinDebugSink
impl Sink for WinDebugSink
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 set_formatter(&self, formatter: Box<dyn Formatter>)
fn set_formatter(&self, formatter: Box<dyn Formatter>)
Sets the formatter.
sourcefn set_error_handler(&self, handler: Option<ErrorHandler>)
fn set_error_handler(&self, handler: Option<ErrorHandler>)
Sets a error handler. Read more
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.
Auto Trait Implementations
impl !RefUnwindSafe for WinDebugSink
impl Send for WinDebugSink
impl Sync for WinDebugSink
impl Unpin for WinDebugSink
impl !UnwindSafe for WinDebugSink
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