Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log events to a file

 
Arthur Buliva
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know, but you could use Log4J instead (directly or through Commons Logging).
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic