Enum fern::InitError
[−]
[src]
pub enum InitError { Io(Error), SetLoggerError(SetLoggerError), }
Convenience error which combines possible which could occur while initializing logging.
Fern does not use this error natively, but functions which set up fern and open log files will
often need to return both io::Error
and SetLoggerError
. This error is for that purpose.
Variants
Io(Error)
IO error.
SetLoggerError(SetLoggerError)
The log crate's global logger was already initialized when trying to initialize a logger.
Trait Implementations
impl Debug for InitError
[src]
impl From<Error> for InitError
[src]
impl From<SetLoggerError> for InitError
[src]
fn from(error: SetLoggerError) -> InitError
Performs the conversion.
impl Display for InitError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more