Enum flexi_logger::FlexiLoggerError
source · #[non_exhaustive]
pub enum FlexiLoggerError {
Reset,
NoFileLogger,
OutputBadDirectory,
OutputBadFile,
OutputCleanupThread(Error),
OutputIo(Error),
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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Reset
Chosen reset not possible.
NoFileLogger
Method not possible because no file logger is configured.
OutputBadDirectory
Log file cannot be written because the specified path is not a directory.
OutputBadFile
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)
.
OutputIo(Error)
Log cannot be written, e.g. because the configured output directory is not accessible.
LevelFilter(String)
Invalid level filter.
Parse(String, LogSpecification)
Failed to parse log specification.
The String contains a description of the error, the second parameter
contains the resulting LogSpecification
object
Log(SetLoggerError)
Logger initialization failed.
Poison
Some synchronization object is poisoned.
Palette(ParseIntError)
Palette parsing failed
Shutdown(SendError<Vec<u8>>)
Logger is shut down.