Paul,
Thanks this worked great.
Robert

-----Original Message-----
From: Paul Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 27, 2003 8:41 PM
To: Log4J Users List
Subject: RE: How to configure log4j to generate
XMLLayout compatible
output.


> No I have no appender configured using XMLLayout.

> Where can I find an example? I have looked through
the

> distribution and

> could find nothing.

> Chainsaw does not throw an error it says 0 loaded

> events when opening

> the file.

> Thanks a lot.

> robert



It's pretty easy, here's a snippet from a
log4j.properties file:



log4j.rootLogger=DEBUG, A1

log4j.appender.A1=org.apache.log4j.FileAppender

log4j.appender.A1.layout=org.apache.log4j.xml.XMLLayout

log4j.appender.A1.append=true

log4j.appender.A1.file=/somepathonyoursystem/log.xml



You may want to browse the Wiki:

http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/Frequentl
yAskedQuestions



In case configuring Log4j via property files is new,
you may find this

URL useful:



http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfig
urator.html#doConfigure(java.lang.String,
org.apache.log4j.spi.LoggerRepository)



cheers,



Paul Smith



On Fri, 2003-11-28 at 12:25, Robert Augustyn wrote:







---------------------------------------------------------------------

To unsubscribe, e-mail:
[EMAIL PROTECTED]

For additional commands, e-mail:
[EMAIL PROTECTED]



__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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

Reply via email to