Enum flexi_logger::FlexiLoggerError
source · [−]pub enum FlexiLoggerError {
Show 16 variants
Reset,
NoFileLogger,
OutputBadDirectory,
OutputBadFile,
OutputCleanupThread(Error),
OutputIo(Error),
Notify(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
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.
Notify(Error)
Filesystem notifications for the specfile could not be set up.
SpecfileToml(Error)
Parsing the configured logspec toml-file failed.
SpecfileIo(Error)
Specfile cannot be accessed or created.
SpecfileExtension(&'static str)
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)
Palette parsing failed
Shutdown(SendError<Vec<u8>>)
async
only.Logger is shut down.
Trait Implementations
sourceimpl Debug for FlexiLoggerError
impl Debug for FlexiLoggerError
sourceimpl Display for FlexiLoggerError
impl Display for FlexiLoggerError
sourceimpl Error for FlexiLoggerError
impl Error for FlexiLoggerError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for FlexiLoggerError
impl From<Error> for FlexiLoggerError
sourceimpl From<Error> for FlexiLoggerError
impl From<Error> for FlexiLoggerError
sourceimpl From<Error> for FlexiLoggerError
impl From<Error> for FlexiLoggerError
sourceimpl From<Infallible> for FlexiLoggerError
impl From<Infallible> for FlexiLoggerError
sourcefn from(_other: Infallible) -> FlexiLoggerError
fn from(_other: Infallible) -> FlexiLoggerError
Converts to this type from the input type.
sourceimpl From<ParseIntError> for FlexiLoggerError
impl From<ParseIntError> for FlexiLoggerError
sourcefn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
sourceimpl From<SetLoggerError> for FlexiLoggerError
impl From<SetLoggerError> for FlexiLoggerError
sourcefn from(source: SetLoggerError) -> Self
fn from(source: SetLoggerError) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more