Trait Yiisoft\Yii\Debug\Collector\ProxyLogTrait
| Implemented by | Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy, Yiisoft\Yii\Debug\Collector\ServiceMethodProxy, Yiisoft\Yii\Debug\Collector\ServiceProxy |
|---|
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| logProxy() | Yiisoft\Yii\Debug\Collector\ProxyLogTrait |
Method Details
| protected void logProxy ( string $service, object $instance, string $method, array $arguments, mixed $result, float $timeStart ) | ||
| $service | string | |
| $instance | object | |
| $method | string | |
| $arguments | array | |
| $result | mixed | |
| $timeStart | float | |
protected function logProxy(
string $service,
object $instance,
string $method,
array $arguments,
mixed $result,
float $timeStart
): void {
$error = $this->getCurrentError();
$this->processLogData($arguments, $result, $error);
if ($this->config->getCollector() !== null) {
$this->logToCollector($service, $instance, $method, $arguments, $result, $error, $timeStart);
}
if ($this->config->getDispatcher() !== null) {
$this->logToEvent($service, $instance, $method, $arguments, $result, $error, $timeStart);
}
}
Signup or Login in order to comment.