aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j lose log information issue" Watch "Log4j lose log information issue" New topic
Author

Log4j lose log information issue

Cathie Lee
Greenhorn

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?

Thanks,
Cathie


<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"/>
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="debug" />
<param name="LevelMax" value="fatal" />
<param name="AcceptOnMatch" value="true" />
</filter>
</appender>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4j lose log information issue
 
Similar Threads
New to log4j - need some advice
Log4j lose log information issue
log4j.xml configuration for configuring input from specific file only to consider logging.
How to configure Log4j with two managed server?
How to configure a separate log file(Log4j) for a specific application in JBoss?