logs: Implement colorful service names for logs command#1369
Merged
p12tic merged 3 commits intocontainers:mainfrom Jan 19, 2026
Merged
logs: Implement colorful service names for logs command#1369p12tic merged 3 commits intocontainers:mainfrom
logs command#1369p12tic merged 3 commits intocontainers:mainfrom
Conversation
17293b8 to
4455c1c
Compare
p12tic
reviewed
Jan 5, 2026
p12tic
reviewed
Jan 5, 2026
p12tic
reviewed
Jan 5, 2026
p12tic
requested changes
Jan 5, 2026
Collaborator
p12tic
left a comment
There was a problem hiding this comment.
Looks good overall, I proposed several improvements.
4455c1c to
83b4abc
Compare
This was referenced Jan 5, 2026
p12tic
reviewed
Jan 6, 2026
p12tic
reviewed
Jan 6, 2026
p12tic
reviewed
Jan 6, 2026
83b4abc to
aa7c896
Compare
aa7c896 to
07cb88b
Compare
docker-compose shows colored logs by default. Podman prints monochrome logs unless you explicitly ask for color. podman-compose adds the `--color` option to every podman "logs" command, unless the user has asked for no color with the flag `--no-color`. This keeps the behaviour consistent with docker-compose. Signed-off-by: Monika Kairaityte <monika@kibit.lt>
Instead of using containerID, log line now begins with a formatted service name. When `--no-log-prefix` flag is used, only server logs are printed, omitting the server name prefix. Relevant docker-compose documentation: https://docs.docker.com/reference/cli/docker/compose/logs/ Signed-off-by: Monika Kairaityte <monika@kibit.lt>
07cb88b to
aeda5d1
Compare
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
aeda5d1 to
42ed080
Compare
p12tic
approved these changes
Jan 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
logscommand now displays short service names in color by default (the project-name prefix has been removed). An option has been added to either render service names in monochrome or omit them entirely.This update improves compatibility of the
logscommand withdocker-compose. For relevant documentation, see: https://docs.docker.com/reference/cli/docker/compose/logs/Fixes: #1355, #111.