Customize HTMLLayout
1 posts in topic
Flat View  Flat View

Posted By:   Yuri_Morais
Posted On:   Monday, May 7, 2007 11:12 AM


I am adding some log function to my app.
I am using HTMLLayout, but I would like to customize the html generated. For example, add more columns, show a picture in a column instead of plain text... and so on.
Log4j has anything ready to do this or I have to do on my own?
How could I do that?


Re: Customize HTMLLayout

Posted By:   Anonymous  
Posted On:   Thursday, May 24, 2007 02:47 PM

I did this to create a Javascript layout with stack traces which can be expanded or collapsed. All you have to do is extend HTMLLayout and override the getHeader(), getFooter(), and format(LoggingEvent event) methods.
About | Sitemap | Contact