• 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: Problem with DailyRollingFileAppender

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi pals!

I'm working on a project which is actually consisting of two different webapps. We are using log4j for logging purposes. Now both webapps (actually each webapp defines its own logger) writes to a logfile through an appender which is configured for daily rolling. the important thing is, that both webapps should write to the SAME appender.

Now I'm experiencing a strange problem with the rolled logfiles:

While the original logfiles are working correctly, as soon as the logfiles a rolled, only the output of one of the webapps is appearing there. Furthermore, the rolled file doesn't contain yesterdays, but todays content (...of only one of the webapps).

To mess things up even more, the configuration is working fine on three different testsystems (which are configured absolutely the same way as the production system), the problem is only appearing in our production environment. Since our logging is pretty extensive, it could be that this only shows with heavy load.

Did anybody hear about a similar problem or even experienced anything like that?

Thank you so much for your comments, i'm going crazy about this!
reply
    Bookmark Topic Watch Topic
  • New Topic