Skip to content

Commit 1f9c6f3

Browse files
cmaglieMassimiliano Pippi
authored andcommitted
[skip changelog] Added more help on log levels (arduino#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy