Support for log rotation

Added support for the log file rotation that was introduced with PMS
0.9.7.23