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(StringLogSpecification), Log(SetLoggerError), Poison, Palette(ParseIntError), Shutdown(SendError<Vec<u8>>),
}
Expand description

Describes errors in the initialization of flexi_logger.

Variants

Reset

Reset not possible because not 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).

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

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: String1: LogSpecification

Logger initialization failed.

Tuple Fields of Log

0: SetLoggerError
Poison

Some synchronization object is poisoned.

Palette(ParseIntError)

Palette parsing failed

Tuple Fields of Palette

0: ParseIntError
Shutdown(SendError<Vec<u8>>)
This is supported on crate feature async only.

Logger is shut down.

Tuple Fields of Shutdown

0: SendError<Vec<u8>>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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