View Source

h1. LogData

The project petals-commons provides  classes for each type of trace:
* ConsumeFlowStepBeginLogData
* ProvideExtFlowStepBeginLogData
* ProvideFlowStepBeginLogData
* ProvideFlowStepEndLogData

To add extra parameter to a LogData, like requestedurl in petals-bc-soap, the developer must extends the associated class and uses putData(String,Object) method.

To add a MONIT trace:
{code}
logger.log(Level.MONIT,"",new SoapConsumeFlowStepBeginLogData(...);{code}
{info}
The message part have to be empty.
{info}
The trace ProvideFlowStepBeginLogData and ProvideFlowStepEndLogData are defined at CDK level.
{note}If the send of response message is not delegate to the CDK (return false for the method onJbiMessage(Exchange exchange) ), developper have to manually set the trace ProvideFlowStepEndLogData.
){note}