[][src]Struct mlog::Logger

pub struct Logger { /* fields omitted */ }

Methods

impl Logger
[src]

pub fn new() -> Self
[src]

Initializes the Logger.

pub fn default_level(self, level: LevelFilter) -> Self
[src]

pub fn get_max_level(&self) -> LevelFilter
[src]

pub fn for_module<T: Into<Cow<'static, str>>>(
    self,
    module: T,
    level: LevelFilter
) -> Self
[src]

pub fn format<F>(self, formatter: F) -> Self where
    F: Fn(&Record) -> String + Sync + Send + 'static, 
[src]

pub fn ready(self) -> Result<(), SetLoggerError>
[src]

Trait Implementations

impl Log for Logger
[src]

Auto Trait Implementations

impl Send for Logger

impl Sync for Logger

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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