Skip to content

Conversation

superbrothers
Copy link
Member

This PR adds a new flag --only-log-lines that prints only log lines.

$ stern . --tail=1
+ nginx-cfbcb7b98-29wn7 › nginx
+ nginx-cfbcb7b98-96xsv › nginx
nginx-cfbcb7b98-96xsv nginx 2023/01/27 13:20:48 [notice] 1#1: start worker process 46
nginx-cfbcb7b98-29wn7 nginx 2023/01/27 13:20:45 [notice] 1#1: start worker process 46
^C

$ stern . --tail=1 --only-log-lines
nginx-cfbcb7b98-96xsv nginx 2023/01/27 13:20:48 [notice] 1#1: start worker process 46
nginx-cfbcb7b98-29wn7 nginx 2023/01/27 13:20:45 [notice] 1#1: start worker process 46
^C

/ref #202

Copy link
Member

@rkmathi rkmathi left a comment

Choose a reason for hiding this comment

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

LGTM 🥳

@superbrothers superbrothers merged commit 995be39 into master Jan 28, 2023
@superbrothers superbrothers deleted the only-log-lines branch January 28, 2023 02:16
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.

2 participants