A DESCRIPTION OF THE REQUEST :
Include the ability to rotate files in java.util.logging.FileHandler on each new day. Include a method in java.util.logging.FileHandler:
private File generate(String pattern, int generation, int unique) throws IOException
private synchronized void rotate()
a protected modifer for further modification in child classes
JUSTIFICATION :
for convenience
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
we create a FileHandler with %d pattern in file name e.g. log%d.txt
and on each dayse well have:
log20060101.txt
log20060102.txt
log20060103.txt
.....
ACTUAL -
no actual behavior.