Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /