Note the LocationInfo statements below:

log4j.appender.Default=org.apache.log4j.RollingFileAppender 
log4j.appender.Default.file=c:/jrun/logs/company_a_xml.log 
log4j.appender.Default.layout=org.apache.log4j.xml.XMLLayout 
log4j.appender.Default.layout.ConversionPattern=%d [%t] %-5p [%x]
%c{2}.%M - %m%n
log4j.appender.Default.layout.LocationInfo=true
log4j.appender.Default.append=false
log4j.appender.Default.MaxFileSize=1000KB
log4j.appender.Default.MaxBackupIndex=10

log4j.appender.Chainsaw=org.apache.log4j.net.SocketAppender 
log4j.appender.Chainsaw.remoteHost=localhost 
log4j.appender.Chainsaw.port=4445 
log4j.appender.Chainsaw.locationInfo=true 

Jack Rief
Senior Software Engineer
Paxonix Inc.
www.paxonix.com <http://www.paxonix.com> 
 
805.695.8279 office
805.695.8200 main
805.695.8748 fax
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
 


-----Original Message-----
From: max [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 9:01 AM
To: Log4J Users List
Subject: Re: Chainsaw related problems


> Can anyone indicate the use of the trace property in chainsaw?
> Chainsaw uses the attribute 'Trace' for each log statement which can
be
> checked or not.
> What does this mean and how do you use this?

If trace is checked (= true) then a Throwable have been given as
argument to
the log statement. The stacktrace from this throwable is then visible in
the
message area.

> Another problem I'm having is that the 'Location' information in
Chainsaw
is
> shown as 'null'.  How can this information be set?

The location information is method and linenumber information (VERY
expensive at runtime to calculate - but usefull in debugging
situations).
I can't remember how you make them available to chainsaw, and I don't
have
my work-computer at my side - anyone else ?

/max



> Thanks for ideas and suggestions.
> Jeroen
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to