This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes How to change the JVM Log settings in WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to change the JVM Log settings in WebSphere" Watch "How to change the JVM Log settings in WebSphere" New topic
Author

How to change the JVM Log settings in WebSphere

Aravind Ram
Greenhorn

Joined: Mar 06, 2008
Posts: 22
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

Joined: Mar 25, 2002
Posts: 662
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 ]
 
Don't get me started about those stupid light bulbs.
 
subject: How to change the JVM Log settings in WebSphere
 
Similar Threads
Time zone issue with WAS v61
log4j in eclipse enterprise application project
commons logging level
How to supress Runtime Exceptions
auditing security changes