Struct slog_stdlog::StdLog
[−]
[src]
pub struct StdLog;
Drain logging Records into log crate
Using StdLog is effectively the same as using log::info!(...) and
other standard logging statements.
Caution needs to be taken to prevent circular loop where Logger
installed via slog-stdlog::set_logger would log things to a StdLog
drain, which would again log things to the global Logger and so on
leading to an infinite recursion.
Trait Implementations
impl Drain for StdLog[src]
type Error = Error
Type of potential error returned during logging
fn log(&self, info: &Record, _: &OwnedKeyValueList) -> Result<()>
Write one logging record As an optimization (avoiding allocations), loggers are responsible for providing a byte buffer, that Drain can use for their own needs. Read more