Register / Login
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Java in General
issue with java.util.logging.FileHandler limit
s ravi chandran
posted 5 years ago
i am having some trouble in
limit parameter. what i want is to rotate the log file after 10mb of data has been logged.
this is what i am trying :
handler = new FileHandler("mylog.log", 1048576, 1, true);
but i don't know why, but log files created are having max size of 11kb, and then it keeps decreasing ; 10kb, 9kb ....
what is going wrong here?
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
NX: logging with file handler
NX: Notes on a design that passed 389/400
Problem with java.util.logging - writing to multiple log files
Log events to a file
How could I write logs (using java.util.logging) to different file based on differet package?