Jake,

The config file looks good.

At 07:14 AM 12/2/2004, Jacob Kjome wrote:

None of my RollingFileAppender files successfully roll over and I get the following message ever time I start up Tomcat when my active files exists already (log4j debugging was enabled. I'm concerned about the WARN messages only)...

DEBUG[Thread-1]: pache.log4j.rolling.RollingFileAppender 11406 - About to rollover
WARN [Thread-1]: pache.log4j.rolling.RollingFileAppender 11422 - RolloverFailure occurred. Deferring rollover.
DEBUG[Thread-1]: pache.log4j.rolling.RollingFileAppender 11422 - Active file name is now [D:\Java\Apache\Jakarta\jakarta-tomcat-5.5.4/logs/localhost.log].

[cut]

What have I done wrong?

Nothing apparently. More below.

I also get messages like this upon startup...

WARN [Thread-1]: he.log4j.rolling.helper.FileNamePattern 672 - Assuming daily rotation schedule

Consider this as a message of level DEBUG. It was incorrectly marked as WARN. Just changed in CVS head. It's unrelated with the rollover failure.


Am I missing something in the configuration of the rolling appenders? I'd like to make sure I have everything set properly and avoid the warnings.

The rollover failure is real though. (Fortunately it will not cause data loss as was the case in previous versions of log4j.) Something is preventing the file from being renamed


One thing which raises suspicions is the missing message (of level DEBUG) by the rename method in o.a.l.roling.helper.Util

DEBUG[Thread-1]: org.apache.log4j.rolling.helper.Util 11594 - Renaming file [D:\Java\Apache\Jakarta\jakarta-tomcat-5.5.4/logs/localhost.log] toFile [D:\Java\Apache\Jakarta\jakarta-tomcat-5.5.4/logs/localhost.log.1]

Why is this log statement is missing? Is the logger named "o.a.l.rolling.helper.Util" disabled?

I'd venture to say that more than one LoggerRepository has a handle to "../jakarta-tomcat-5.5.4/logs/localhost.log". Is it possible that more than one repository is being automatically configured with the same config file? Are you using log4j-1.3alpha3 or CVS head? Have you set a RepositorySelector?


Jake

-- Ceki G�lc�

The complete log4j manual: http://qos.ch/eclm
Professional log4j support: http://qos.ch/log4jSupport




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to