1. Logon to your server and navigate to directory BPEL_HOME/domains/<domain name>/config.
2. Make a backup copy of the log4j-config.xml file.
3. Open the log4j-config.xml file for edit.
4. Change the appender class from com.collaxa.cube.util.CXRollingFileAppender to org.apache.log4j.RollingFileAppender.
5. Add the property MaxFileSize:
<param value="10MB" name="MaxFileSize" />
Here, a maximum file size of 10MB is specified, but you can make it whatever value suits your environment. The top of the log4j-config.xml file now looks like:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender class="org.apache.log4j.RollingFileAppender" name="A1">
<param value="true" name="ImmediateFlush" />
<param value="false" name="Append" />
<param value="D:/soa/product/10.1.3.1/as_1/bpel/domains/default/logs/domain.log" name="File" /> <param value="10MB" name="MaxFileSize" />
<param value="10" name="MaxBackupIndex" />
6. Save the file, and restart the BPEL container.
Please note that these changes will be carried forward to any new domain that you create. If you have already created domains in addition to default, you will need to change the log4j-config.xml file for each of these domains to limit the size of those log files.
25 Mayıs 2009 Pazartesi
log dosya boyutunu ayarlama
Kaydol:
Kayıt Yorumları (Atom)

Hiç yorum yok:
Yorum Gönder