Menu ▾ ▴

#58 FileHandler limit and count

open
nobody
5
2002-10-02
2002-10-02
No

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.

Discussion


Log in to post a comment.