Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change the JVM Log settings in WebSphere

 
Aravind Ram
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers

The websphere server 6.0 am using is creating the System.out log files for the past two-weeks. Can somebody tell me how to change the setting so that only current day log file is created in the websphere.

Thanks !
Aravind Ram ..
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are settings available to roll the logs, no. of logs to retain, their size, etc. We've done it for WAS5.1 by mentioning these parameters in log.properties in the appserver config on the AIX filesystem. Something like below -

log4j.appender.dest1=org.apache.log4j.RollingFileAppender
log4j.appender.dest1.File=app.log
log4j.appender.dest1.MaxFileSize=10000KB
log4j.appender.dest1.MaxBackupIndex=1
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout

The above approach is not date-based though.
[ May 22, 2008: Message edited by: Jayadev Pulaparty ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic