LogConfigs

Type Alias LogConfigs 

Source
pub type LogConfigs = HashMap<String, LogConfig>;
Expand description

Configuration of log destinations.

Logs can be sent to multiple destinations. Configuration of each of them is prefixed with ABCI_LOG_<key>_, where <key> is some arbitrary alphanumeric name of log configuration.

Key must match pattern [A-Za-z0-9]+.

Note that parsing of LogConfigs is implemented in PlatformConfig::from_env() due to limitations of [envy] crate.

§Example

# First logger, logging to stderr on verbosity level 5
ABCI_LOG_STDERR_DESTINATION=stderr
ABCI_LOG_STDERR_LEVEL=trace

# Second logger, logging to stdout on verbosity level 1
ABCI_LOG_STDOUT_DESTINATION=stdout
ABCI_LOG_STDOUT_LEVEL=info

Aliased Type§

pub struct LogConfigs { /* private fields */ }

Trait Implementations§

Source§

impl FromEnv for LogConfigs

Source§

fn from_env() -> Result<Self, Error>
where Self: Sized,

create new object using values from environment variables