Enum log::LogLevelFilter
[−]
[src]
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
.
Variants
Off | A level lower than all log levels. |
Error | Corresponds to the |
Warn | Corresponds to the |
Info | Corresponds to the |
Debug | Corresponds to the |
Trace | Corresponds to the |
Methods
impl LogLevelFilter
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
.