Enabling log rotation in TWM.
book
Article ID: KB0089327
calendar_today
Updated On:
TIBCO Web Messaging for TIBCO Enterprise Message Service
|
-
|
Not Applicable
|
-
|
Description
Resolution:
Description:
==========
Example configuration in log4j-config.xml:
==========
<appender name="ErrorFile" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${GATEWAY_LOG_DIRECTORY}/error.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="5KB"/>
<param name="MaxBackupIndex" value="5"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p %m%n"/>
</layout>
</appender>
=========
MaxFileSize: File size in string
MaxBackupIndex: number of files that are rotated and kept.
Issue/Introduction
Enabling log rotation in TWM.
Additional Information
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.html
http://tech.kaazing.com/documentation/html5/3.5/admin-reference/p_conf_gw_opts.html
Feedback
thumb_up
Yes
thumb_down
No