Struct tinylog::Config [−][src]
pub struct Config { /* fields omitted */ }Expand description
Used to configure logging.
This is returned from tinylog::config().
Implementations
Set the default log level.
If RUST_LOG is set, it will override this.
You can use Config::level to ignore RUST_LOG.
Example
tinylog::config()
.default_level(LevelFilter::Warn)
.init();Filter logs.
Example
tinylog::config()
.filter(|metadata| {
// only show logs from this binary
metadata.target().starts_with(module_path!())
})
.init();