From 2254ba216770f4fd1b2cd1431f3255b1891f8215 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 10 Jan 2020 16:33:36 +0100 Subject: [PATCH] Added more help on log levels --- cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cli.go b/cli/cli.go index e2aae9d8133..65091c9dbaa 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -78,7 +78,7 @@ func createCliCommandTree(cmd *cobra.Command) { cmd.AddCommand(version.NewCommand()) cmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Print the logs on the standard output.") - cmd.PersistentFlags().String("log-level", "", "Messages with this level and above will be logged.") + cmd.PersistentFlags().String("log-level", "", "Messages with this level and above will be logged. Valid levels are: Trace, Debug, Info, Warning, Error, Fatal, Panic") viper.BindPFlag("logging.level", cmd.PersistentFlags().Lookup("log-level")) cmd.PersistentFlags().String("log-file", "", "Path to the file where logs will be written.") viper.BindPFlag("logging.file", cmd.PersistentFlags().Lookup("log-file"))