• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

max index files for logs not being stored.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using WAS 6.0 server for my application.
I have configured log4j.properties as

log4j.rootLogger=DEBUG, R'

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%-d{MMM dd yyyy HH:mm:ss} %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=log\\weblog.log
log4j.appender.R.MaxFileSize=40000KB
# Keep up to ten backup files
log4j.appender.R.MaxBackupIndex=100
log4j.appender.R.layout=org.apache.log4j.PatternLayout
#log4j.appender.R.layout.ConversionPattern=%p %-d{MMM dd yyyy HH:mm:ss} %c - %m%n
log4j.appender.R.layout.ConversionPattern=[slf5s.start]%p[slf5s.PRIORITY] %d{DATE}[slf5s.DATE] %c[slf5s.CATEGORY] - %m[slf5s.MESSAGE] %x[slf5s.NDC] %t[slf5s.THREAD] %l[slf5s.LOCATION]%n



It was storing index files upto 100 properly.

But recently , when checked it is overwriting the same log file and not maintaining any index files.
There are no changes done to WAS deployment settings.

What could be the reason for this?

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!