Struct multi_log::MultiLogger [] [src]

pub struct MultiLogger { /* fields omitted */ }

Logger that writes log messages to all the loggers it encapsulates.

Methods

impl MultiLogger
[src]

[src]

Creates a MultiLogger from any number of other loggers.

Once initialised, this will need setting as the log crate's global logger using log::set_boxed_logger.

[src]

Initialises the log crate's global logging facility with a MultiLogger built from any number of given loggers.

The log level threshold of individual loggers can't always be determined, so a level parameter is provided as an optimisation to avoid sending unnecessary messages to loggers that will discard them.

Arguments

  • loggers - one more more boxed loggers
  • level - minimum log level to send to all loggers

Trait Implementations

impl Log for MultiLogger
[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.

Auto Trait Implementations

impl Send for MultiLogger

impl Sync for MultiLogger