Trait fern::IntoLog
[−]
[src]
pub trait IntoLog { fn into_fern_logger(self) -> Result<Box<Logger>>; fn into_log(self) -> Result<Box<Log>>; }
Trait which represents any logger configuration which can be built into a fern::Logger
or
log::Log
.
Required Methods
fn into_fern_logger(self) -> Result<Box<Logger>>
Builds this configuration into a fern::Logger
that you can send messages to. This method
can be used to generate a logger you can call manually, and catch any errors from. You
probably want to use fern::init_global_logger()
instead of calling this directly.
fn into_log(self) -> Result<Box<Log>>
Builds this configuration into a log::Log
that you can send messages to. This will open
any files, get handles to stdout/stderr, etc. depending on which type of logger this is.
Implementors
impl<'a> IntoLog for OutputConfig<'a>
impl<'a> IntoLog for DispatchConfig<'a>