Added log file rotation