Allow daemonized processes to rotate logs #7083
-
Checklist
Lotus componentlotus JSON-RPC API What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.log files get big fast especially when debug output is logged. to allow proper log "segmentation" and system hygiene a command to rotate the logfiles would be great! Describe the solution you'd likelotus daemon log rotate --file=new.log same for lotus-miner/worker Describe alternatives you've considerednone, the daemons keep the file handle open i assume so linux side logrotete solutions do not really work great Additional contexthave a client sending over 10mb of log files to debug a problem, spend time on finding the relevant parts of it - with daily/weekly/whatever log files life would be easier |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@f8-ptrk |
Beta Was this translation helpful? Give feedback.
-
i see that as working then. thanks @lanzafame |
Beta Was this translation helpful? Give feedback.
-
For anyone who comes across this at a later date, you will want to use the |
Beta Was this translation helpful? Give feedback.
For anyone who comes across this at a later date, you will want to use the
copytruncate
option in yourlogrotate
configuration for lotus/lotus-miner log files as this keeps the same file pointer and that way lotus/lotus-miner do not need to be restarted.