Add defaults to log formatting

This commit is contained in:
Michael Barz
2020-04-07 22:21:30 +02:00
parent 8091a665fa
commit 622ecebfd5
3 changed files with 5 additions and 7 deletions
+2
View File
@@ -24,12 +24,14 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.BoolFlag{
Name: "log-pretty",
Value: true,
Usage: "Enable pretty logging",
EnvVars: []string{"SETTINGS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
&cli.BoolFlag{
Name: "log-color",
Value: true,
Usage: "Enable colored logging",
EnvVars: []string{"SETTINGS_LOG_COLOR"},
Destination: &cfg.Log.Color,