Using log4j with Tomcat 4.1.30 problems with log4j.properties

R

Rodolfo

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
 

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,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top