pub trait Sink:
SinkPropAccess
+ Sync
+ Send {
// Required methods
fn log(&self, record: &Record<'_>) -> Result<()>;
fn flush(&self) -> Result<()>;
// Provided method
fn should_log(&self, level: Level) -> bool { ... }
}Expand description
Represents a sink
See ./examples directory for how to implement a custom sink.
Required Methods§
Provided Methods§
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.
Implementors§
impl Sink for AndroidSink
Available on Android and crate feature
native and crate feature android-ndk only.impl Sink for AsyncPoolSink
Available on crate feature
multi-thread only.impl Sink for DedupSink
impl Sink for FileSink
impl Sink for JournaldSink
Available on Linux and crate feature
native and crate feature libsystemd only.impl Sink for RotatingFileSink
impl Sink for StdStreamSink
impl Sink for WinDebugSink
Available on Windows and crate feature
native only.