Enum simplelog::LogLevel
[−]
[src]
#[repr(usize)]pub enum LogLevel { Error, Warn, Info, Debug, Trace, }
An enum representing the available verbosity levels of the logging framework.
Typical usage includes: checking if a certain LogLevel
is enabled with
log_enabled!
, specifying the LogLevel
of
log!
, and comparing a LogLevel
directly to a
LogLevelFilter
.
Variants
Error
The "error" level.
Designates very serious errors.
Warn
The "warn" level.
Designates hazardous situations.
Info
The "info" level.
Designates useful information.
Debug
The "debug" level.
Designates lower priority information.
Trace
The "trace" level.
Designates very low priority, often extremely verbose, information.
Methods
impl LogLevel
[src]
fn max() -> LogLevel
[src]
Returns the most verbose logging level.
fn to_log_level_filter(&self) -> LogLevelFilter
[src]
Converts the LogLevel
to the equivalent LogLevelFilter
.
Trait Implementations
impl Ord for LogLevel
[src]
impl Hash for LogLevel
[src]
impl Copy for LogLevel
[src]
impl Clone for LogLevel
[src]
fn clone(&self) -> LogLevel
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for LogLevel
[src]
impl PartialEq<LogLevel> for LogLevel
[src]
fn eq(&self, other: &LogLevel) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<LogLevelFilter> for LogLevel
[src]
fn eq(&self, other: &LogLevelFilter) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl FromStr for LogLevel
[src]
impl Debug for LogLevel
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Display for LogLevel
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more