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

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

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

Log cannot be written, e.g. because the configured output directory is not accessible.

Tuple Fields of OutputIo

0: Error
SpecfileNotify

Filesystem notifications for the specfile could not be set up.

Tuple Fields of SpecfileNotify

0: Error
SpecfileToml

Parsing the configured logspec toml-file failed.

Tuple Fields of SpecfileToml

0: Error
SpecfileIo

Specfile cannot be accessed or created.

Tuple Fields of SpecfileIo

0: Error
SpecfileExtension

Specfile has an unsupported extension.

Tuple Fields of SpecfileExtension

0: &'static str
LevelFilter

Invalid level filter.

Tuple Fields of LevelFilter

0: String
Parse

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
Log

Logger initialization failed.

Tuple Fields of Log

0: SetLoggerError
Poison

Some synchronization object is poisoned.

Palette

Palette parsing failed

Tuple Fields of Palette

0: ParseIntError
Shutdown
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.

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.