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

View logs conveniently with supervisorctl #1050

Closed
kootenpv opened this issue Jan 28, 2018 · 3 comments
Closed

View logs conveniently with supervisorctl #1050

kootenpv opened this issue Jan 28, 2018 · 3 comments
Labels

Comments

@kootenpv
Copy link

kootenpv commented Jan 28, 2018

Is there a form of:

supervisorctl logs myservice

Which would just be like a "tail -f" to the stdout or stderr file read from config.

@mnaberez
Copy link
Member

mnaberez commented Jan 31, 2018

supervisorctl tail -5000 procname stderr will read the last 5000 bytes from the stderr log for procname.

supervisorctl tail -f procname stdout will continuously read the stdout log for procname.

See help tail for other examples.

@kootenpv
Copy link
Author

Thanks, I hadn't seen tail (I've only scanned the args), but I see it now under actions. Perhaps logs could be added as an alias? Just a suggestion. Very happy that I can use it.

@timotheecour
Copy link

IIUC it's tail -f not tail, otherwise doesn't seem to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants