This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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