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

Logging with systemd #14

Open
bb233 opened this issue Mar 6, 2019 · 0 comments
Open

Logging with systemd #14

bb233 opened this issue Mar 6, 2019 · 0 comments

Comments

@bb233
Copy link
Contributor

bb233 commented Mar 6, 2019

Currently, the servers handle their own logging -- they are each configured in Ruby code to write to individual log files.

The guidance for "12 factor apps" at https://12factor.net/ recommend having services logging to stdin/stdout, and letting systemd (or equivalent) handle log routing, persistence, etc.

Adapting this recommendation would mainly involve changing how we configure the logger in the application and removing the file configuration from our startup scripts. By default systemd records the stdout/stderr logged events using journald, so the logs can be accessed and managed with journald automatically.

I am planning on working on improving our logging (to log more events, and more details on failure). That would be an opportunity to make these changes.

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

1 participant