File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply 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: 645
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to change the JVM Log settings in WebSphere
 
Similar Threads
auditing security changes
commons logging level
log4j in eclipse enterprise application project
Time zone issue with WAS v61
How to supress Runtime Exceptions