Added archiving when hitting the max number of log files. Delete archives older then the defined generation.