File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Reading from Logger log file" Watch "Reading from Logger log file" New topic
Author

Reading from Logger log file

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10245
    
    8

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: http://aspose.com/file-tools
 
subject: Reading from Logger log file