Struct env_logger::Logger
[−]
[src]
pub struct Logger { /* fields omitted */ }
The env logger.
This struct implements the Log
trait from the log
crate,
which allows it to act as a logger.
The init()
, try_init()
, Builder::init()
and Builder::try_init()
methods will each construct a Logger
and immediately initialize it as the
default global logger.
If you'd instead need access to the constructed Logger
, you can use
the associated Builder
and install it with the
log
crate directly.
Methods
impl Logger
[src]
pub fn filter(&self) -> LevelFilter
[src]
Returns the maximum LevelFilter
that this env logger instance is
configured to output.
pub fn matches(&self, record: &Record) -> bool
[src]
Checks if this record matches the configured filter.
Trait Implementations
impl Debug for Logger
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more