[][src]Enum casual_logger::Level

pub enum Level {
    Fatal,
    Error,
    Warn,
    Notice,
    Info,
    Debug,
    Trace,
}

The higher this level, the more will be omitted.

|<-- Low Level ------------------------- High level -->| |<-- High priority ------------------- Low priority -->| | Fatal < Error < Warn < Notice < Info < Debug < Trace |

Variants

Fatal

If the program cannot continue.

Error

I didn't get the expected result, so I'll continue with the other method.

Warn

It will be abnormal soon, but there is no problem and you can ignore it. For example: * He reported that it took longer to access than expected. * Report that capacity is approaching the limit.

Notice

It must be enabled in the server production environment. Record of passing important points correctly. We are monitoring that it is working properly.

Info

Report highlights. Everything that needs to be reported regularly in the production environment.

Debug

It should be in a place with many accidents. This level is disabled in production environments. Leave it in the source and enable it for troubleshooting. Often, this is the production level of a desktop operating environment.

Trace

Not included in the distribution. Remove this level from the source after using it for debugging. If you want to find a bug in the program, write a lot.

Implementations

impl Level[src]

pub fn number(&self) -> usize[src]

Trait Implementations

impl Clone for Level[src]

impl Display for Level[src]

Auto Trait Implementations

impl RefUnwindSafe for Level

impl Send for Level

impl Sync for Level

impl Unpin for Level

impl UnwindSafe for Level

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.