-
Notifications
You must be signed in to change notification settings - Fork 167
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
github-bot: redirect stdout to file #553
Conversation
Allows us to simplify github-bot logging by not having to write into logs into a file. Also fixes an issue we have currently, where all current logs are deleted whenever the bot is redeployed.
Wouldn't stdout be collected by systemd (when deployed on debian8, ubuntu, etc) which is already managed by journalctl? |
I'm all ears to better / simpler ways. I'd say it's important to be able to On Wed, 23 Nov 2016 at 23:23, Johan Bergström notifications@github.com
|
I'm personally not a "log over http" guy (grep, awk, tail, ..) but if has been a big part of the teams debugging lets opt for that then. If you're going that route, look at systemd's |
By the way, does stdout follow the same format bunyan expects? |
Yepp. Everything we log is through bunyan, which writes both to stdout and a log file ATM. When running locally via |
On second thought, doing this seemed more complex than simply writing logs outside the directory where the github-bot repo is cloned into. Refs #602 |
Closing this in favor of #602 |
Fixes an issue we have currently, where all current logs are deleted whenever the bot is redeployed because of two things:
logs
)git clean -fdx
deletes any untracked files in the repoSimply writing out bunyan logs to stdout would also simplify our current log related code in the bot.
Is
logrotate
the way to go for rotating this?