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

Write status messages to stderr in live tail #9

Open
ryanartecona opened this issue Nov 10, 2016 · 1 comment
Open

Write status messages to stderr in live tail #9

ryanartecona opened this issue Nov 10, 2016 · 1 comment

Comments

@ryanartecona
Copy link

For the use case of combining a live tail session with grep or other utilities in a pipeline, there should be a separation between the log data going to stdout and all other diagnostic messages going to stderr.

My python is rusty, but I believe this amounts to simply giving a file=sys.stderr kwarg to every call to print() inside of liveTail(), e.g. here.

@steve-scalyr
Copy link
Contributor

This is a good suggestion - thanks. We'll address it in a forthcoming
update.

Cheers,
Steve

On Thu, Nov 10, 2016 at 9:39 AM, Ryan Artecona [email protected]
wrote:

For the use case of combining a live tail session with grep or other
utilities in a pipeline, there should be a separation between the log data
going to stdout and all other diagnostic messages going to stderr.

My python is rusty, but I believe this amounts to simply giving a
file=sys.stderr kwarg to every call to print() inside of liveTail(), e.g.
here https://github.com/scalyr/scalyr-tool/blob/master/scalyr#L329.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDJekH6MrmcFqiI1y-yK99l2hhdJDp9ks5q81bAgaJpZM4Ku8Bf
.

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

No branches or pull requests

2 participants