1 May 2009 03:30
Re: XMLLaout
Greg Flex <greg.flex <at> gmail.com>
2009-05-01 01:30:54 GMT
2009-05-01 01:30:54 GMT
I've figure it out.....
LocationInfo needs to be set to true to get these values. (default is false)
For those interested here is the proper XMLLayout file.
<!-- log info level into log.xml -->
<appender name="XMLOUT" class="org.apache.log4j.FileAppender">
<param name="File" value="C:\\tmp\\log.xml"/>
<param name="Threshold" value="info"/>
<layout class="org.apache.log4j.xml.XMLLayout">
<param name="LocationInfo" value="true"/>
</layout>
</appender>
Greg
On Thu, Apr 30, 2009 at 11:55 AM, Greg Flex <greg.flex <at> gmail.com> wrote:
> Hi Guys,
> I have this for now in my config.xml file that configures the logger.
>
> <appender name="XMLOUT" class="org.apache.log4j.FileAppender">
> <param name="File" value="C:\\tmp\\log.xml"/>
> <param name="Threshold" value="info"/>
> <layout class="org.apache.log4j.xml.XMLLayout"/>
> </appender>
>
> It all works just fine but when I view logs with the Chainsaw I'm not
> getting any class name or a method name or line number.
> In fact, I'm not getting anything that I'd need.
> I can get all these values when I use the file appender with the
(Continue reading)
RSS Feed