• 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's Erratic Stop-Resume-Logging Behaviour

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Torpedoes,
I am facing a peculiar problem with Log4j file logging.
log4j stop logging to file, all of a sudden, this generally happens after few hrs of starting the server or even after couple of days after starting the server.
And logging may or may not resume later, this is completely arbit in nature.



Following is the snippet from log4j.properties being used:-
________________________________________________________________
log4j.category.com.xyz.abc.all=ALL, finesse_all
log4j.appender.finesse_all=org.apache.log4j.RollingFileAppender
log4j.appender.finesse_all.File=${basedir}/log/${app_name}-all.log
log4j.appender.finesse_all.MaxFileSize=9MB
log4j.appender.finesse_all.MaxBackupIndex=40
log4j.appender.finesse_all.layout=org.apache.log4j.SimpleLayout
_____________________________


My application makes use of proprietry java code, a wrapper over log4j, for fine grained control on logging. And everything resides in a Jetty6 server environment.

I am using log4j version 1.0.4

I have tried -Dlog4j.debug JVM switch, but it is not providing any clue.

Can it be related to related to Jetty6 Vs log4j 1.0.4? Any concrete information around?

Had anyone of you faced this before? or else
Any pointers would be helpful.



Regards,
Jaideep
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic