• 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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.
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!