• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Log4j lose log information issue

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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? What's a better practice for logging two managed servers?
Your suggestion is much appreciated.

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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic