It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes Reading from Logger log file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Reading from Logger log file" Watch "Reading from Logger log file" New topic

Reading from Logger log file

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10836

I am working on a swing application which logs (using java.util.Logger) activities based on certain criteria.
In the same application, I also need to provide a log analysis and audit functionality. I am planning to use JFreeChart for this purpose.

The logs generated are in XML format with typical <record></record> tags (which correspond to my customized LogRecord, which has all the getter and setters I require) and the record contains all the information I need.

Is there any way I can read from the log file and reconstruct the customized LogRecord? Please note I am not a server side coder and as such SAX and DOM and parsers are all greek to me!

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Reading from Logger log file
It's not a secret anymore!