hashicorp / hashicorp/consul-template

Support log-level as an environment variable

Open
#1,328 3 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Go
Stars
4.8k
Forks
801
Avg merge
4h 5m
Merged PRs (30d)
6

Description

When working on consul-template I find myself switching between log levels quite a bit and having to keep editing scripts or commands. If it supported an environment variable for setting the log-level it would make this much easier.

The cli argument should override the environment variables.

My initial proposed variable name is `CONSULT_TEMPLATE_LOG_LEVEL`, though that is a bit long.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CLI log-level argument and the configuration path that determines the active log level. Check how environment variables are loaded, then verify that the CLI argument overrides CONSULT_TEMPLATE_LOG_LEVEL or the selected variable name; done means log-level can be set from the environment without editing commands and the precedence is tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.