How to change the log format
1 posts in topic
Flat View  Flat View

Posted By:   Satish_Shimoga
Posted On:   Monday, January 27, 2003 08:30 PM

I want to customize the log format and also need to enter some more specific to the application.
Do i just need to create a subclass of Layout?? or Do we require any other classes to support this.


Re: How to change the log format

Posted By:   Anonymous  
Posted On:   Tuesday, January 28, 2003 03:36 AM

Have a look at PatternLayout. If that doesn´t meet your needs you have to extend the Layout and LoggingEvent. LoggingEvent for storing your specific information and Layout for displaying them. I´m sure that I have seen an example "AppserverLoggingEvent" or so, but I can´t find it now.

Another way is to use XML. Your application gives information in XML (or another specific format) as String in the message and a CustomLayout gets them.

About | Sitemap | Contact