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]

[src]

Returns the maximum LevelFilter that this env logger instance is configured to output.

[src]

Checks if this record matches the configured filter.

Trait Implementations

impl Debug for Logger
[src]

[src]

Formats the value using the given formatter.

impl Log for Logger
[src]

[src]

Determines if a log message with the specified metadata would be logged. Read more

[src]

Logs the Record. Read more

[src]

Flushes any buffered records.