Enum flexi_logger::FlexiLoggerError [−][src]
pub enum FlexiLoggerError {
Show 15 variants
Reset,
OutputBadDirectory,
OutputBadFile,
OutputCleanupThread(Error),
OutputIo(Error),
SpecfileNotify(Error),
SpecfileToml(Error),
SpecfileIo(Error),
SpecfileExtension(&'static str),
LevelFilter(String),
Parse(String, LogSpecification),
Log(SetLoggerError),
Poison,
Palette(ParseIntError),
Shutdown(SendError<Vec<u8>>),
}
Expand description
Describes errors in the initialization of flexi_logger
.
Variants
Reset not possible because not file logger is configured.
Log file cannot be written because the specified path is not a directory.
Log file cannot be written because the specified path is a directory.
OutputCleanupThread(Error)
Spawning the cleanup thread failed.
This error can safely be avoided with Logger::cleanup_in_background_thread(false)
.
Tuple Fields of OutputCleanupThread
0: Error
OutputIo(Error)
Log cannot be written, e.g. because the configured output directory is not accessible.
Tuple Fields of OutputIo
0: Error
SpecfileNotify(Error)
Filesystem notifications for the specfile could not be set up.
Tuple Fields of SpecfileNotify
0: Error
SpecfileToml(Error)
Parsing the configured logspec toml-file failed.
Tuple Fields of SpecfileToml
0: Error
SpecfileIo(Error)
Specfile cannot be accessed or created.
Tuple Fields of SpecfileIo
0: Error
SpecfileExtension(&'static str)
Specfile has an unsupported extension.
Tuple Fields of SpecfileExtension
0: &'static str
LevelFilter(String)
Invalid level filter.
Tuple Fields of LevelFilter
0: String
Parse(String, LogSpecification)
Failed to parse log specification.
The String contains a description of the error, the second parameter
contains the resulting LogSpecification
object
Tuple Fields of Parse
0: String
1: LogSpecification
Log(SetLoggerError)
Logger initialization failed.
Tuple Fields of Log
Some synchronization object is poisoned.
Palette(ParseIntError)
Palette parsing failed
Tuple Fields of Palette
async
only.Logger is shut down.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FlexiLoggerError
impl Send for FlexiLoggerError
impl Sync for FlexiLoggerError
impl Unpin for FlexiLoggerError
impl !UnwindSafe for FlexiLoggerError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more