pub trait Sink: AnySync {
// Required method
fn write(
&self,
target: Option<&str>,
level: Level,
args: &Arguments<'_>,
) -> bool;
}
Expand description
A log sink trait that can be installed into the log subsystem using the [pipe
]
function and will receive all log messages.