Log4J Configuration

C

CrassMaster

similar to the PatternLayout is there a way to configure the XMLLayout

I am including my property file... any help would be greatly
appreciated. Basically I want to be able to include custom elements
within my xml output

thanks

log4j.rootLogger=DEBUG, B1, A1

log4j.appender.B1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.B1.File=c:/undeleted/output.log
log4j.appender.B1.datePattern='.'yyyy-MM-dd
log4j.appender.B1.layout=org.apache.log4j.PatternLayout
log4j.appender.B1.layout.ConversionPattern=%d{yyyyMMdd}|%d{HH:mm:ss}|%-5p|%-6L|%-60C|%-40M|%m%n

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=c:/undeleted/output.xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top