log4j and DailyRollingFileAppender issue

S

Seb

Hi all,

I want to use log4j for my application logging with Weblogic 7.0. However,
whatever I adopt the daily rolling or size rolling file appender, log4j
can't rename
and close the old file! This leads to the new log message still being
written on the
same log file. The problem seems due to the weblogic "opening the file" (or
any
other process) and so causing the rename action fails.
Any ideas?
Thanks in advance.
Sebastian

Here is my log4j properties:

log4j.rootCategory=DEBUG, dest1

log4j.appender.dest1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.dest1.DatePattern='.'yyyy-MM-dd
log4j.appender.dest1.File=\log\my.log
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=[%d] %t %-5p %c - %m%n
 

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,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top