Skip to content

Conversation

cr7258
Copy link
Contributor

@cr7258 cr7258 commented May 11, 2024

fixes #304
All containers within a pod have the same color by default.

./stern myapp
image

Set --diff-container to display different colors for different containers. This is useful when you want to debug logs for multiple containers in the same pod.

# --diff-container is false by default
./stern myapp --diff-container
image

@cr7258 cr7258 requested a review from tksm May 12, 2024 01:05
Copy link
Contributor

@tksm tksm left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

📝 We can also enable this feature in the config file (~/.config/stern/config.yaml).

diff-container: true

@tksm tksm merged commit d1b5d74 into stern:master May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support print logs in different colors for each container
2 participants