Enum flexi_logger::LogLevelFilter
[−]
[src]
#[repr(usize)]pub enum LogLevelFilter { Off, Error, Warn, Info, Debug, Trace, }
An enum representing the available verbosity level filters of the logging framework.
A LogLevelFilter
may be compared directly to a LogLevel
.
Use this type to get()
and
set()
the
MaxLogLevelFilter
, or to match with the getter
max_log_level()
.
Variants
Off
A level lower than all log levels.
Error
Corresponds to the Error
log level.
Warn
Corresponds to the Warn
log level.
Info
Corresponds to the Info
log level.
Debug
Corresponds to the Debug
log level.
Trace
Corresponds to the Trace
log level.
Methods
impl LogLevelFilter
[src]
fn max() -> LogLevelFilter
Returns the most verbose logging level filter.
fn to_log_level(&self) -> Option<LogLevel>
Converts self
to the equivalent LogLevel
.
Returns None
if self
is LogLevelFilter::Off
.
Trait Implementations
impl Debug for LogLevelFilter
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for LogLevelFilter
[src]
impl Copy for LogLevelFilter
[src]
impl Display for LogLevelFilter
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more