Allow for easier modification of log4rs-based logging #6586
Labels
Focus:Supervisor
Related to the Habitat Supervisor (core/hab-sup) component
Stale
Type: Chore
Issues for general code and infrastructure maintenance
As a follow-on to #6583, if we decide to continue to allow logging modification through environment variables, we should also deprecate
RUST_LOG
in favor ofHAB_LOG
(the fact that Habitat is written in Rust shouldn't matter to users, and theHAB_
prefix is consistent with our other environment variables).We will need to iron out exactly how this would interact with a configuration file. Would it take priority over the file, or would the file take priority over it (particularly since the latter can be modified at runtime, but the former cannot)? Would the environment variable configuration be merged with anything in a file? Should the environment variable continue to contain a limited subset of logging configuration (consistent with its previous
env_logger
use), or would we want to do something like accept the contents of the variable as a validlog4rs
YAML file?The text was updated successfully, but these errors were encountered: