Menu ▾ ▴

#30 append propertie cause log file switchin

0.9.3.1
open
5
2002-01-15
2001-11-30
Simonnet
No

When setting the java.util.logging.FileHandler.append
propetie to true and
java.util.logging.FileHandler.count to a value greater
than 1 then the log file target switch at each write.

To correct than strange behaviour I sugest you
to set append to false at the first switch and to test
if append is true when creating log file.

id change line 210
from
if ( temp.createNewFile() ) {
to
if ( append || temp.createNewFile() ) {

and add append=false; in switchFiles()

Discussion

  • Brian R. Gilstrap

    • labels: 346267 --> FileHandler
    • assigned_to: nobody --> gilstrap
     
  • Brian R. Gilstrap

    Logged In: YES
    user_id=101085

    Hmmm. The code looks right. I'll create a test ASAP and try
    to recreate the bug. If you have a simple test that
    reproduces the bug, that would be very helpful.

    Thanks,
    Brian

     
  • Brian R. Gilstrap

    • milestone: --> 0.9.3.1
     

Log in to post a comment.