File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.util.logging" Watch "java.util.logging" New topic
Author

java.util.logging

Ambrose R Tati
Greenhorn

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
Ambrose
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"
Sheriff

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.util.logging
 
Similar Threads
How to activate Realm logs in Tomcat 5.5 / 6 ?
Query on Logging
does developer bother setting Isolation Levels
java.util.logging
servlet to write to file