wood burning stoves 2.0*
The moose likes Java in General and the fly likes Log events to a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Log events to a file" Watch "Log events to a file" New topic
Author

Log events to a file

Arthur Buliva
Ranch Hand

Joined: Mar 08, 2006
Posts: 101
Am intending to log events occurring in a Java app to a file. Code:





works fine, but am having multiple files yet the FileHandler has been implicitly asked to append to the log file. What am I doing wrong?
Francesc Martinez
Greenhorn

Joined: Feb 13, 2009
Posts: 24
I don't know, but you could use Log4J instead (directly or through Commons Logging).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Log events to a file
 
Similar Threads
Writing logs to a single file from Multiple Classes
iText: Digital signature
How do I go about making my own Yahoo Messenger?
error while reading objects from file
java.util.Logger creating multiple log files