Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Log4j lose log information issue  RSS feed

Cathie Lee
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" />
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!