Sunday, January 30, 2011

TIBCO BusinessWorks log4j File

The standard log4j logging service is available for components of TIBCO BusinessWorks. The log4j is the logging infrastructure developed by the Apache group, and is separate from the standard TIBCO logging infrastructure. For more information, please see http://logging.apache.org/log4j/docs/index.html

Custom java code (BusinessWorks JavaCode or JavaMethod activity) can send log message to the TIBCO BusinessWorks log file by using the log4j logger "bw.logger" that is specified in log4j property file and its located at (BW_HOME\5.x\lib\log4j.properties).

For example, TIBCO BusinessWorks JavaCode activity may use the following code to log warning message to the BusinessWorks log file:

org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger("bw.logger"); logger.warn("This is a warning message from BW JavaCode activity");

If you use your own logger class, you can configure the TIBCO BusinessWorks log4j properties file to include your logger. This involves adding log4j.logger and log4j.appender properties to the properties file.

Do not move this file from its current location (BW//lib), as this is where BW expects to find this file. If you would like to use a different file in a different location please see the BW documentation.

0 comments:

Popular Posts

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP