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

Create new dcrstmd log for each day #8

Open
David00 opened this issue Oct 8, 2018 · 1 comment
Open

Create new dcrstmd log for each day #8

David00 opened this issue Oct 8, 2018 · 1 comment

Comments

@David00
Copy link

David00 commented Oct 8, 2018

Currently, dcrstmd dumps all stdout into one file that is named after the day the the daemon is started. As the daemon continues to run over days or even weeks, this makes it difficult to look through the logs (without the use of cat/grep/sed) when trying to troubleshoot matcher service issues.

I would like to see the dcrstmd log files created at the start of each day (assuming dcrstmd is running, of course).

@matheusd
Copy link
Owner

Right now you can send a SIGHUP to dcrstmd which will cause it to close existing connections (stopping any waiting or in-progress sessions), reload the config and restart the service (creating a new log file in the process).

Ideally the log should be sent to the OS's logging facility (journald, syslog, etc) instead of writing to a dedicated file (which should automatically take care of things like log rotation, etc).

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