Use rotatelogs
Refactoring