Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.logging

 
Ambrose R Tati
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I would like to create a Logger for my Java class using java.util.logging with the ability to log different Levels in different files, e.g. Level.SEVERE logs in one file and Level.INFORNATION in another file. Currently I'm logging all Levels in the same file.
How can it be done?
Many thanks
Ambrose
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the JavaRanch newsletter. I wrote an article on logging a couple of months ago and I cover writing your own logger classes.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaRanch Newsletter. His article was in the May edition.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic