[][src]Struct mlog::Logger

pub struct Logger { /* fields omitted */ }

Methods

impl Logger[src]

pub fn new() -> Self[src]

Initializes the Logger.

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

Sets the logging level for module.

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

Sets the log formatter for this logger.

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

Returns the level filter that corresponds to the maximum log level of this logger.

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

Sets the global logger to this logger.

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

Sets the default log level for this logger.

Trait Implementations

impl Log for Logger[src]

Auto Trait Implementations

impl Send for Logger

impl Sync for Logger

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

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

The type returned in the event of a conversion error.

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