zarf-dev / zarf

DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev/
Apache License 2.0
1.42k stars 171 forks source link

Add env vars for ZARF_LOG_LEVEL and ZARF_LOG_FORMAT #3222

Open mkcp opened 2 weeks ago

mkcp commented 2 weeks ago

Is your feature request related to a problem? Please describe.

We don't support env vars for log level and format but these are nice to have for users.

Describe the behavior you'd like

When a user supplies an either the ZARF_LOG_LEVEL ZARF_LOG_FORMAT env var, these should percolate through the CLI layer and into logger setup. In the event that a flag is also supplied, the flag value takes precedence.