A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Java in General
issue with java.util.logging.FileHandler limit
s ravi chandran
Joined: Dec 20, 2010
Apr 08, 2012 06:46:29
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?
I agree. Here's the link:
subject: issue with java.util.logging.FileHandler limit
Problem with java.util.logging - writing to multiple log files
Log events to a file
NX: logging with file handler
How could I write logs (using java.util.logging) to different file based on differet package?
NX: Notes on a design that passed 389/400
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013