Skip to main content

init_from_env

Function init_from_env 

Source
pub fn init_from_env() -> Result<(), String>
Expand description

Read LOG_ENV_VAR and install the stderr subscriber it asks for. Unset or blank installs nothing โ€” see the module docs.

ยงErrors

A value that does not parse as EnvFilter directives, or a subscriber already installed for this process. Both abort startup rather than run the daemon with logging silently different from what the operator asked for โ€” same posture as the config file (crate::config): a daemon quietly running on defaults the operator believes they overrode is worse than a loud failure at boot.