Skip to content

Conversation

@kivarun
Copy link

@kivarun kivarun commented Sep 25, 2025

This change introduces the BUILDKITD_LOG_FORMAT environment variable as an alternative way to set the log-format option.
It makes it easier to configure log formatting when running buildkitd inside Docker containers, where passing CLI flags may be less convenient.

@kivarun kivarun force-pushed the log_format_environ branch from 0bf3cf2 to f7a8b62 Compare October 3, 2025 09:08
// Use Format flag to control log formatter
logFormat := context.GlobalString("log-format")
if logFormat == "" {
logFormat = os.Getenv("BUILDKITD_LOG_FORMAT")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is in buildctl but env is called BUILDKITD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants