Skip to content

Commit

Permalink
Merge pull request #28 from ryanhallcs/feature/env-logging
Browse files Browse the repository at this point in the history
feat: add env var to log flag
  • Loading branch information
alexei-led authored Nov 3, 2022
2 parents f952535 + b220c6a commit a134c43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ func main() {
Before: setLogFormatter,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "log-format, l",
Usage: "select logrus formatter ['json', 'text']",
Value: "text",
Name: "log-format, l",
Usage: "select logrus formatter ['json', 'text']",
Value: "text",
EnvVars: []string{"LOG_FORMAT"},
},
&cli.StringFlag{
Name: "provider, p",
Expand Down

0 comments on commit a134c43

Please sign in to comment.