adding new environmental variables for added debugging: COLLECTOR_LOG_FILE, COLLECTOR_DEBUG, DEBUG, SCRUTINY_LOG_FILE, SCRUTINY_DEBUG

This commit is contained in:
Jason Kulatunga
2020-09-21 18:41:52 -06:00
parent f2dd87cf82
commit a57120d600
9 changed files with 254 additions and 80 deletions
@@ -117,15 +117,16 @@ OPTIONS:
},
&cli.StringFlag{
Name: "log-file",
Usage: "Path to file for logging. Leave empty to use STDOUT",
Value: "",
Name: "log-file",
Usage: "Path to file for logging. Leave empty to use STDOUT",
Value: "",
EnvVars: []string{"COLLECTOR_LOG_FILE"},
},
&cli.BoolFlag{
Name: "debug",
Usage: "Enable debug logging",
EnvVars: []string{"DEBUG"},
EnvVars: []string{"COLLECTOR_DEBUG", "DEBUG"},
},
},
},