Struct cpp_to_rust_common::log::Logger [] [src]

pub struct Logger { /* fields omitted */ }

Logger object. One logger manages messages of all categories. It's possible to use multiple loggers independently. Use default_logger() to get global Logger instance. Note that the instance is mutex-guarded.

Methods

impl Logger
[src]

Creates a new logger.

Set settings for all categories that don't have specific category settings.

Set settings for category.

Set all specific category settings. Old category settings are removed.

Returns false if messages of category are ignored. This function can be used to skip expensive construction of messages.

Lazy-log. If messages of category are not ignored, calls the passed closure and uses its output value as a message in that category.

Log a message text to category.

Trait Implementations

impl Default for Logger
[src]

Returns the "default value" for a type. Read more