Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose (v2) up --log-level missing #10503

Closed
xydesa opened this issue Apr 28, 2023 · 3 comments · Fixed by docker/docs#17201
Closed

Docker compose (v2) up --log-level missing #10503

xydesa opened this issue Apr 28, 2023 · 3 comments · Fixed by docker/docs#17201

Comments

@xydesa
Copy link

xydesa commented Apr 28, 2023

Description

The --log-level option doesn't seem to work in compose v2.

This page has replicated help text from the command line that seems to suggest it's been deprecated: https://docs.docker.com/compose/reference/

But it's not mentioned as not yet implemented or not to be implemented in this page: https://docs.docker.com/compose/compose-v2/

It's also not mentioned in any of the release notes (except when it was added to compose v1): https://github.com/docker/compose/releases?q=log-level&expanded=true

Nor can I find any other reference to this feature being deprecated. Is it actually deprecated? Is there any other way to get the equivalent behavior? If it is deprecated and expected to not work the docs need to be updated.

$ docker compose version
Docker Compose version v2.17.3
$ docker version
Client: Docker Engine - Community
 Version:           23.0.5
 API version:       1.42
 Go version:        go1.19.8
 Git commit:        bc4487a
 Built:             Wed Apr 26 16:17:30 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          23.0.5
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.8
  Git commit:       94d3ad6
  Built:            Wed Apr 26 16:17:30 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
@xydesa xydesa changed the title Docker compose up --log-level missing Docker compose (v2) up --log-level missing Apr 28, 2023
@ndeloof
Copy link
Contributor

ndeloof commented Apr 28, 2023

As a CLI plugin, compose logging is configured at top level docker command:
docker --log-level=debug compose xx ...

@ndeloof
Copy link
Contributor

ndeloof commented Apr 28, 2023

command line output on https://docs.docker.com/compose/reference/ is obsolete, docker compose --help doesn't list --log-level flag in any recent release. Let's fix this

@ndeloof
Copy link
Contributor

ndeloof commented Apr 28, 2023

Closing this issue as documentation has been updated

@ndeloof ndeloof closed this as completed Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants