Using log4j with Tomcat 4.1.30 problems with log4j.properties

Discussion in 'Java' started by Rodolfo, Jul 12, 2004.

  1. Rodolfo

    Rodolfo Guest

    Hi,

    I'm using log4j with 4.1.30, the log4j.properties i´m using is derived
    from the example of the manual, but I have problems in initiliazation.
    The file is :

    log4j.appender.A1=org.apache.log4j.RollingFileAppender
    log4j.appender.A1.File=d:/Tomcat41/webapps/vicy/log/vicy.log

    # Control the maximum log file size
    log4j.appender.A1.MaxFileSize=10000KB
    # Archive log files (one backup file here)
    log4j.appender.A1.MaxBackupIndex=1

    log4j.appender.A1.layout=org.apache.log4j.PatternLayout
    #log4j.appender.A1.layout.ConversionPattern=%p %t %c - %m%n
    log4j.appender.A1.layout.ConversionPattern=%p %c - %m%n

    log4j.logger.es.cyii=debug, A1
    log4j.additivity.es.cyii=false

    Could somebody say which is the problem or send me a correct
    log4j.properties for initilize log4j to write a file.

    Thanks in advance

    Rodolfo
     
    Rodolfo, Jul 12, 2004
    #1
    1. Advertisements

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:
    6,221
    Alexandra Stehman
    Jan 19, 2004
  2. Jim
    Replies:
    0
    Views:
    6,274
  3. Kent Lichty
    Replies:
    0
    Views:
    988
    Kent Lichty
    Apr 16, 2004
  4. John
    Replies:
    3
    Views:
    3,816
  5. jAnO!
    Replies:
    2
    Views:
    669
    Son KwonNam
    Jul 23, 2004
  6. Jeff O.
    Replies:
    2
    Views:
    11,999
    Jeff O.
    Sep 28, 2004
  7. willirl
    Replies:
    3
    Views:
    885
    Sebastian Millies
    Feb 24, 2005
  8. Gianni Galore
    Replies:
    0
    Views:
    1,532
    Gianni Galore
    Sep 8, 2010
Loading...