/** * @param string $method * @param array|object $filters * @param array|object $data * @param array $options * * @return LogEvent */ private function startQueryLogging(string $method, $filters = null, $data = null, array $options) : LogEvent { $debugInfo = $this->__debugInfo(); $event = new LogEvent(); $event->setFilters($filters); $event->setData($data); $event->setOptions($options); $event->setMethod($method); $event->setCollection($debugInfo['collectionName']); $this->logger->startLogging($event); return $event; }