[Comment] Re: Display source line numbers in Chainsaw with Log4j

0
socketappender doesn't use patternlayout, and if you are using the new version of Chainsaw (http://logging.apache.org/log4j/docs/chainsaw.html) with a log4j 1.2.8 socketappender, locationinfo=true won't work either in chainsaw for now.

To get line numbers in Chainsaw, use a logfilepatternreceiver in Chainsaw and a FileAppender with the %L in the patternlayout.

See http://marc.theaimsgroup.com/?l=log4j-user&m=109537659111758&w=2 for more info – feel free to email me if you have questions

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge