Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Use human-friendly log format instead of JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Beneke authored and nihalgonsalves committed Mar 18, 2021
1 parent 033af5f commit 7d4c9c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws-cfg-generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package main
*/

import (
"os"
"time"

"github.com/alecthomas/kong"
Expand All @@ -29,6 +30,8 @@ func main() {
var cli cmd.CLI
ctx := kong.Parse(&cli)

log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})

if cli.Debug {
zerolog.SetGlobalLevel(zerolog.DebugLevel)
} else {
Expand Down

0 comments on commit 7d4c9c5

Please sign in to comment.