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. So if the CDK is a dependency of the component, no extra development are needed.

{info}If the send of response message is not delegate to the CDK, developper have to manually set the trace ProvideFlowStepEndLogData.
){info}