Usage of LogConfiguration class in the CDD file.

Usage of LogConfiguration class in the CDD file.

book

Article ID: KB0086130

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
Usage of LogConfiguration class in the CDD file.

Environment:
===========
All Operating Systems


Symptoms:
=========
n.a.

Cause:
======
n.a.

Resolution:
========
The  different class for logging which could be specified in the CDD file Collections-&gtLog Configurations -> logConfig is used to define the layout of the log message.

The custom line layout class is determined by the value of the "Class" field in the CDD log configuration (CDD-&gtCollections-&gtLog Configurations-> logConfig). This class can either be org.apache.log4j.Layout, or override org.apache.log4j.Layout.

More information about org.apache.log4j.Layout can be found at the following: http://www.tutorialspoint.com/log4j/log4j_patternlayout.htm

The class will be instantiated by BusinessEvents through a constructor taking a single string parameter. The value passed as the parameter is the value of the "Arguments" field. The behavior is enabled / disabled by the checkbox. If disabled (which is the default state) or if no class is specified, Business Events uses the default layout with the default arguments.

NOTE:
In BusinessEvents 3.0.n the properties below were used to define the log4j Layout.

be.trace.layout.enabled
be.trace.layout.class.name
be.trace.layout.class.arg

Issue/Introduction

Usage of LogConfiguration class in the CDD file.