How to customize logs of in TIBCO BusinessWorks ProcessMonitor (BWPM) for no more than five server.log files with a 100 KB max size.
book
Article ID: KB0093072
calendar_today
Updated On:
Products
Versions
TIBCO BusinessWorks ProcessMonitor
-
Not Applicable
-
Description
Description: TIBCO BusinessWorks ProcessMonitor
(BWPM) server will write log information to the BWPM Server logfile located at <TOMCAT_WEBAPPS>\bwpm\WEB-INF\logs\bwpm.log.
By default, server.logs are rolled on a daily basis and there is no any limit on log file size. You can change all aspects of the log file using the log4j.properties
file located at
<TOMCAT_WEBAPPS>\bwpm\WEB-INF\data}log4j.properties to customize server.logs as per your requirement.
Issue/Introduction
How to customize logs of in TIBCO BusinessWorks ProcessMonitor
(BWPM) for no more than five server.log files with a 100 KB max size.
Resolution
TIBCO BusinessWorks ProcessMonitor
(BWPM) uses DailyRollingFileAppender, so it creates server.logs on daily basis. For your requirements you have to use RollingFileAppender and you need to set MaxBackupIndex to four (as you need five files) and MaxFileSize to 100KB.
Change log4j.appender.MeinDaRoFiAppender=org.apache.log4j.DailyRollingFileAppender to log4j.appender.MeinDaRoFiAppender=org.apache.log4j.RollingFileAppender and add the following properties in the log4j.properties file.
The log4j.properties file will look like the following once the changes. are made You need to restart the BWPM/Tomcat server for the changes to log4j.properties to take effect.