This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change the JVM Log settings in WebSphere
 
Similar Threads
log4j in eclipse enterprise application project
commons logging level
Time zone issue with WAS v61
How to supress Runtime Exceptions
auditing security changes