Log4J Configuration

Discussion in 'Java' started by CrassMaster, Jan 6, 2004.

  1. CrassMaster

    CrassMaster Guest

    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
    CrassMaster, Jan 6, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexandra Stehman

    eclipse, junit, log4j, & finding log4j.xml

    Alexandra Stehman, Jan 19, 2004, in forum: Java
    Replies:
    0
    Views:
    5,770
    Alexandra Stehman
    Jan 19, 2004
  2. Alex Hunsley
    Replies:
    2
    Views:
    12,931
    =?ISO-8859-15?Q?Fr=E9d=E9ric_G=E9din?=
    May 28, 2004
  3. Rodolfo
    Replies:
    0
    Views:
    952
    Rodolfo
    Jul 12, 2004
  4. joes
    Replies:
    1
    Views:
    2,158
  5. Gianni Galore
    Replies:
    0
    Views:
    1,269
    Gianni Galore
    Sep 8, 2010
Loading...

Share This Page