I'm having trouble with logging to multiple files - I am using the constructor for creating multiple files with size limitation- FileHandler(Stringpattern, int limit, int count, boolean append).
The problem I encounter is that it writes to the next log file before exceeding the limit, can it be because of file-lock or something? what can I do in order to fill log files in a given limit and then write to the next? thanks, Dave
Can't help with your problem but log4j could do this very easily, without having to write any Java code. You can direct output to a console, multiple files, emails and so on by just changing a properties file.
Joined: Feb 20, 2005
Thanks Kashif, But I can't use the log4j,I an requierd to use the jave.util.logger .