From 048d252fcec5616acc0c009b52785936cec5feaf Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 3 Mar 2024 09:21:15 +0100 Subject: [PATCH] Set logging format to JSON. Signed-off-by: Felix Fontein --- cmd/compose/compose.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/compose/compose.go b/cmd/compose/compose.go index 8801d5415da..5f2ee6c0ae1 100644 --- a/cmd/compose/compose.go +++ b/cmd/compose/compose.go @@ -446,6 +446,7 @@ func RootCommand(dockerCli command.Cli, backend api.Service) *cobra.Command { // ui.Mode = ui.ModeQuiet case ui.ModeJSON: ui.Mode = ui.ModeJSON + logrus.SetFormatter(&logrus.JSONFormatter{}) default: return fmt.Errorf("unsupported --progress value %q", opts.Progress) }