#[non_exhaustive]pub enum Error {
Show 14 variants
FormatRecord(Error),
WriteRecord(Error),
FlushBuffer(Error),
CreateDirectory(Error),
OpenFile(Error),
QueryFileMetadata(Error),
RenameFile(Error),
RemoveFile(Error),
ParseLevel(String),
InvalidArgument(InvalidArgumentError),
SendToChannel(SendToChannelError, SendToChannelErrorDropped),
BuildPattern(BuildPatternError),
SerializeRecord(Error),
Multiple(Vec<Error>),
}
Expand description
Contains most errors of this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FormatRecord(Error)
Returned by Formatter
s when an error occurs in formatting a record.
WriteRecord(Error)
Returned by Sink
s when an error occurs in writing a record to the
target.
FlushBuffer(Error)
Returned by Sink
s when an error occurs in flushing the buffer.
CreateDirectory(Error)
Returned by Sink
s when an error occurs in creating a directory.
OpenFile(Error)
Returned by Sink
s when an error occurs in opening a file.
QueryFileMetadata(Error)
Returned by Sink
s when an error occurs in querying the metadata of a
file.
RenameFile(Error)
Returned by Sink
s when an error occurs in renaming a file.
RemoveFile(Error)
Returned by Sink
s when an error occurs in removing a file.
ParseLevel(String)
Returned by from_str
when the string doesn’t match any of the log
levels.
InvalidArgument(InvalidArgumentError)
Returned if an invalid argument was passed in.
SendToChannel(SendToChannelError, SendToChannelErrorDropped)
multi-thread
only.Returned by Sink
s when an error occurs in sending to the channel.
BuildPattern(BuildPatternError)
runtime-pattern
only.Returned by runtime_pattern!
when the pattern is failed to be built
at runtime.
SerializeRecord(Error)
serde
only.Returned by Formatter
s when an error occurs in serializing a log.
Multiple(Vec<Error>)
Returned when multiple errors occurred.