8000 Add --only-log-lines flag that prints only log lines by superbrothers · Pull Request #216 · stern/stern · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add --only-log-lines flag that prints only log lines #216

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

Merged
merged 1 commit into from
Jan 28, 2023

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
0