FileHandler limit and count
Status: Beta
Brought to you by:
gilstrap
FileHandler in JDK1.4 allows a limit of zero, Lumberjack
does not. For example, the following is valid:
FileHandler fh;
fh = new FileHandler( "%h/serious.log", 0, 1, true );
In JDK1.4, FileHandler construction parameters limit > 0
&& count > 1. However, for the corresponding
properties:
java.util.logging.FileHandler.limit = -1
java.util.logging.FileHandler.count = 0
limit < 0 is taken as limit = 0 and count < 1 is taken as
count = 1.
My workaround was to pass Integer.MAX_VALUE rather
than 0 for the limit parameter.