File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java.util.logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.util.logging" Watch "java.util.logging" New topic


Ambrose R Tati

Joined: Nov 06, 2000
Posts: 21
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
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Check the JavaRanch newsletter. I wrote an article on logging a couple of months ago and I cover writing your own logger classes.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
The JavaRanch Newsletter. His article was in the May edition.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: java.util.logging
It's not a secret anymore!