#[non_exhaustive]pub enum FlexiLoggerError {
Show 19 variants
Reset,
NoDuplication,
NoFileLogger,
OutputBadDirectory,
OutputBadFile,
BadFileSpec(&'static str),
OutputCleanupThread(Error),
OutputIo(Error),
SpecfileToml(Error),
SpecfileIo(Error),
SpecfileExtension(&'static str),
LevelFilter(String),
Parse(String, LogSpecification),
Log(SetLoggerError),
Poison,
Palette(ParseIntError),
RepeatedPaletteInitialization,
Shutdown(SendError<Vec<u8>>),
TracingSetup(SetGlobalDefaultError),
}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.
NoDuplication
Method not possible because duplication is 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.
BadFileSpec(&'static str)
Invalid input for deriving FileSpec.
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.
SpecfileToml(Error)
specfile only.Parsing the configured logspec toml-file failed.
SpecfileIo(Error)
specfile only.Specfile cannot be accessed or created.
SpecfileExtension(&'static str)
specfile only.Specfile has an unsupported extension.
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)
colors only.Palette parsing failed
RepeatedPaletteInitialization
colors only.Repeated palette initialization failed
Shutdown(SendError<Vec<u8>>)
async only.Logger is shut down.
TracingSetup(SetGlobalDefaultError)
trc only.Tracing initialization failed.
Trait Implementations§
Source§impl Debug for FlexiLoggerError
impl Debug for FlexiLoggerError
Source§impl Display for FlexiLoggerError
impl Display for FlexiLoggerError
Source§impl Error for FlexiLoggerError
impl Error for FlexiLoggerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for FlexiLoggerError
impl From<Error> for FlexiLoggerError
Source§impl From<Error> for FlexiLoggerError
impl From<Error> for FlexiLoggerError
Source§impl From<Infallible> for FlexiLoggerError
impl From<Infallible> for FlexiLoggerError
Source§fn from(_other: Infallible) -> FlexiLoggerError
fn from(_other: Infallible) -> FlexiLoggerError
Source§impl From<ParseIntError> for FlexiLoggerError
impl From<ParseIntError> for FlexiLoggerError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<SetGlobalDefaultError> for FlexiLoggerError
impl From<SetGlobalDefaultError> for FlexiLoggerError
Source§fn from(source: SetGlobalDefaultError) -> Self
fn from(source: SetGlobalDefaultError) -> Self
Source§impl From<SetLoggerError> for FlexiLoggerError
impl From<SetLoggerError> for FlexiLoggerError
Source§fn from(source: SetLoggerError) -> Self
fn from(source: SetLoggerError) -> Self
Auto Trait Implementations§
impl Freeze for FlexiLoggerError
impl !RefUnwindSafe for FlexiLoggerError
impl Send for FlexiLoggerError
impl Sync for FlexiLoggerError
impl Unpin for FlexiLoggerError
impl !UnwindSafe for FlexiLoggerError
Blanket Implementations§
Source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
Source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
&dyn Any.