Skip to content

Configure JSON-formatted logging for dockerd daemon logs #44940

@pkwarren

Description

@pkwarren

Description

Would it be possible to make the logging output for dockerd configurable so users could enable structured logs? This is currently set to use TextFormatter and all of the --log* options only configure the format of the container logs, not the daemon itself.

Ref:

moby/cmd/dockerd/daemon.go

Lines 792 to 796 in c758d8b

logrus.SetFormatter(&logrus.TextFormatter{
TimestampFormat: jsonmessage.RFC3339NanoFixed,
DisableColors: conf.RawLogs,
FullTimestamp: true,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/daemonCore Enginekind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions