Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Log4J Configuration

Reply
Thread Tools

Log4J Configuration

 
 
CrassMaster
Guest
Posts: n/a
 
      01-06-2004
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.DailyRollingFil eAppender
log4j.appender.B1.File=c:/undeleted/output.log
log4j.appender.B1.datePattern='.'yyyy-MM-dd
log4j.appender.B1.layout=org.apache.log4j.PatternL ayout
log4j.appender.B1.layout.ConversionPattern=%d{yyyy MMdd}|%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.XMLL ayout
log4j.appender.A1.append=true
log4j.appender.A1.file=c:/undeleted/output.xml
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does "additivity" flag in log4j.properties work only with log4j or with Apache Commons Logging as well? Gianni Galore Java 0 09-08-2010 09:26 AM
Log4j configuration: how to suppress internal logs from Log4j? joes Java 1 08-06-2005 04:31 PM
Using log4j with Tomcat 4.1.30 problems with log4j.properties Rodolfo Java 0 07-12-2004 08:56 AM
log4j: locating log4j.proprties in same folder as jar Alex Hunsley Java 2 05-28-2004 09:57 PM
eclipse, junit, log4j, & finding log4j.xml Alexandra Stehman Java 0 01-19-2004 03:25 PM



Advertisments