Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j HTMLLayout (sort)

Ming Han Chung
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic