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.
How to add a monitoring trace:
logger.log(Level.MONIT,"",new SoapConsumeFlowStepBeginLogData(...);
| The message part have to be empty. |
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.
| If the send of response message is not delegate to the CDK, developper have to manually set the trace ProvideFlowStepEndLogData. ) |