Static
getGenerates a report summarizing the contract execution history. This report includes total executions, success/failure counts, success rate, and stats per layer.
A JSON string representing the contract execution report.
Static
logLogs the execution of a contract method. This method is active only in development environments.
The full name of the contract method (e.g., "UserService.createUser").
The layer of the application where the contract is applied.
The input arguments passed to the contract method.
Optional
output: anyThe output returned by the contract method (if successful).
Optional
error: anyAny error that occurred during contract execution (if failed).
Provides debugging utilities for contract execution. It logs contract execution history and provides a summary report. This class is primarily intended for use in development environments.