Skip to content

Commit b220c6a

Browse files
author
Ryan Hall
committed
feat: add env var to log flag
1 parent f952535 commit b220c6a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ func main() {
3939
Before: setLogFormatter,
4040
Flags: []cli.Flag{
4141
&cli.StringFlag{
42-
Name: "log-format, l",
43-
Usage: "select logrus formatter ['json', 'text']",
44-
Value: "text",
42+
Name: "log-format, l",
43+
Usage: "select logrus formatter ['json', 'text']",
44+
Value: "text",
45+
EnvVars: []string{"LOG_FORMAT"},
4546
},
4647
&cli.StringFlag{
4748
Name: "provider, p",

0 commit comments

Comments
 (0)