We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d7acb commit 7e1aa9fCopy full SHA for 7e1aa9f
cmd/buildctl/main.go
@@ -116,6 +116,9 @@ func main() {
116
debugEnabled = context.GlobalBool("debug")
117
// Use Format flag to control log formatter
118
logFormat := context.GlobalString("log-format")
119
+ if logFormat == "" {
120
+ logFormat = os.Getenv("BUILDKITD_LOG_FORMAT")
121
+ }
122
switch logFormat {
123
case "json":
124
logrus.SetFormatter(&logrus.JSONFormatter{})
cmd/buildkitd/main.go
@@ -183,6 +183,7 @@ func main() {
183
Name: "log-format",
184
Usage: "log formatter: json or text",
185
Value: "text",
186
+ EnvVar: "BUILDKITD_LOG_FORMAT",
187
},
188
cli.StringFlag{
189
Name: "group",
0 commit comments