Enum flexi_logger::LogLevel [] [src]

pub enum LogLevel {
    Error,
    Warn,
    Info,
    Debug,
    Trace,
}

An enum representing the available verbosity levels of the logging framework

A LogLevel may be compared 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

fn max() -> LogLevel

Returns the most verbose logging level.

fn to_log_level_filter(&self) -> LogLevelFilter

Converts the LogLevel to the equivalent LogLevelFilter.

Trait Implementations

impl Debug for LogLevel

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Eq for LogLevel

impl Copy for LogLevel

impl Clone for LogLevel

fn clone(&self) -> LogLevel

impl PartialEq<LogLevel> for LogLevel

fn eq(&self, other: &LogLevel) -> bool

impl PartialEq<LogLevelFilter> for LogLevel

fn eq(&self, other: &LogLevelFilter) -> bool

impl PartialOrd<LogLevel> for LogLevel

fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>

impl PartialOrd<LogLevelFilter> for LogLevel

fn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>

impl Ord for LogLevel

fn cmp(&self, other: &LogLevel) -> Ordering

impl FromStr for LogLevel

type Err = ()

fn from_str(level: &str) -> Result<LogLevel()>

impl Display for LogLevel

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.