Skip to content

Commit 1f9c6f3

Browse files
cmaglieMassimiliano Pippi
authored and
Massimiliano Pippi
committed
[skip changelog] Added more help on log levels (#551)
1 parent ffa84fd commit 1f9c6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func createCliCommandTree(cmd *cobra.Command) {
7878
cmd.AddCommand(version.NewCommand())
7979

8080
cmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Print the logs on the standard output.")
81-
cmd.PersistentFlags().String("log-level", "", "Messages with this level and above will be logged.")
81+
cmd.PersistentFlags().String("log-level", "", "Messages with this level and above will be logged. Valid levels are: Trace, Debug, Info, Warning, Error, Fatal, Panic")
8282
viper.BindPFlag("logging.level", cmd.PersistentFlags().Lookup("log-level"))
8383
cmd.PersistentFlags().String("log-file", "", "Path to the file where logs will be written.")
8484
viper.BindPFlag("logging.file", cmd.PersistentFlags().Lookup("log-file"))

0 commit comments

Comments
 (0)