Java FileHandler and rolling log files
<p>I understand how the Java FileHandler rolls to the next log file when a particular size is reached. What I want is a little different. I want to use the FileHandler to use the log file with the oldest last written time in the sequence when the program starts. </p>

<p>For example if I have specified to use 5 log files:
mylog.0.log, mylog.1.log...mylog.4.log </p>

<p>If the program last updated mylog.2.log then the next time I start the program I want it to start logging to mylog.3.log.</p>

<p>The problem I am trying to solve is when a user executes the program and something happens they typically restart the program and if mylog.0.log is available it will always use it and not go to mylog.1.log. I lose the information from the previous execution of the program. </p>