Change the maxHistory from 10 to a big number (eg, set it to 500) and set a value for total-size-cap (eg, 50MB), and when you start up your application, then your application will only keep the last 5 most recent log files (and delete any log files that were created in the last 500 days).