log

Log-related configuration (level filtering). Log-related configuration ([log] table).

Log-related configuration (level filtering). Log-related configuration ([log] table).

struct Settings

source

pub struct Settings

Settings from the [log] configuration table.

Field Type Description
level LevelFilter The configured log level filter.

Implements Clone, Debug, Default, Deserialize<'de>, PartialEq, Serialize.

Settings::level

source

pub fn level(&self) -> LevelFilter

Resolve the effective log level.

The GEST_LOG__LEVEL environment variable takes precedence over the config-file value. If the env var is unset or unparseable, the config-file value (or its default) is used.

Parameter Type Description
returns LevelFilter The level from GEST_LOG__LEVEL when it parses, else the config value.