File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Log4j lose log information issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j lose log information issue" Watch "Log4j lose log information issue" New topic

Log4j lose log information issue

Cathie Lee

Joined: Nov 20, 2004
Posts: 8
I got problem of using DailyRollingFileAppender from Log4j. Our server is configured with two managed servers of WebLogic.

The problem is "we lost the log information in the rolled-over files at every mid-night." That means, I can see all the log info. in the file of "myerror.log" today, but in the file of "myerror.log.2004-12-02", there are only a few lines there. Attached please find the log4j configuration.

Is this related with our two managed servers, because managed servers tried to roll-over logs?

Can anyone explain how this rollover work? How it rollover logs for two managed servers?


<appender name="ABC" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="${user.home}/myerror.log"/>
<param name="Append" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss:SSS z} %-5p [%t] %C:%M - %m%n"/>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="debug" />
<param name="LevelMax" value="fatal" />
<param name="AcceptOnMatch" value="true" />
I agree. Here's the link:
subject: Log4j lose log information issue
It's not a secret anymore!