File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Log4j HTMLLayout (sort) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j HTMLLayout (sort)" Watch "Log4j HTMLLayout (sort)" New topic

Log4j HTMLLayout (sort)

Ming Han Chung

Joined: Feb 21, 2006
Posts: 1
Hey all, with the default HTMLLayout log4j appends every message in a separate row. I was wondering if there was any way you can set it so any info type messages would be added to the same column as a warning message.

Say it started like this

Warn : Test Case 2.2.3

and then

Info : Entering Blah into account
Info : Result

and keep them in one field that would only show the warn?. It doesn't have to sort by level exactly but any way to get multiple comment lines which testing one function into one field would be great.
wood burning stoves
subject: Log4j HTMLLayout (sort)
It's not a secret anymore!