We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c2b3ea commit f800074Copy full SHA for f800074
util/cli/log.go
@@ -8,7 +8,8 @@ import (
8
)
9
10
// InitLog is similar to go-cli LogOptions.Init, but adds the application name
11
-// field to the default logger
+// field to the default logger. It also configures the standard logrus Logger
12
+// with the same default values
13
func InitLog(c *gocli.LogOptions, name string) {
14
if c.LogFields == "" {
15
bytes, err := json.Marshal(log.Fields{"app": name})
0 commit comments