-
Notifications
You must be signed in to change notification settings - Fork 906
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 logs to disk automatically #1623
Comments
[niceToHave] It would be nice to put in place some kind of log rotation too maybe. |
[niceToHave] It would be nice to put in place some kind of log rotation too maybe.
that's probably best left to tools like logrotate
|
Absolutely but as @cdecker says:
If our aim is to manage log information for debugging purposes, maybe it is better to manage them in a proper way ourselves also helping him to find the information we need. Logrotate is not a user oriented tool. Just pondering. I have only today zipped my lightning.log file (700M) into a 25M one. I have sweared to myself I will configure logrotate but I don't think the average user will do it. |
Well, my idea is to basically give the usual hooks for |
SIGHUP is standard for log rotation. But I agree... |
Closes: ElementsProject#1623 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Closes: ElementsProject#1623 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Closes: ElementsProject#1623 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Closes: ElementsProject#1623 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Closes: ElementsProject#1623 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
#1847 only partially addressed this issue. Its main goal is to always log to file, independently of whether we also log to stdout or not. The problem is that by default we just log to stdout and users are losing the logs in the scrollback buffers of their terminals making it really hard to trace issues. |
Besides keeping logs in memory for live inspection, and printing them to
stdout
, we should also have a log file to which log-entries get appended. This should make debugging a lot easier since users tend to nottee
logs into files until something bad happens, and telling them that they should save logs in case it happens again is just not helpful.The text was updated successfully, but these errors were encountered: