Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Limit log history to a certain amount of days #2790
Feature request: Limit log history to a certain amount of days
lisk.log "should" only store a log of the last n days.
By default and left alone, lisk.log grows infinitely.
Steps to reproduce
Install and run core, set fileLogLevel to debug and leave the server alone until hard drive is full.
Reason for request
Several users running core reported that their server logs quickly fill up the hard drive. Which will cause the node to go offline.
There is a solution using logrotate, but the solution to this issue could be greatly simplified for the user by expanding config with the option: logFileHistoryLength.