metaData = $metaData; parent::__construct($connectionString, $level, $bubble); } /** * overwrite default handle() * -> change data structure after processor() calls and before formatter() calls * @param array $record * @return bool */ public function handle(array $record) : bool { if (!$this->isHandling($record)) { return false; } $record = $this->processRecord($record); $record = [ 'task' => 'logData', 'load' => [ 'meta' => $this->metaData, 'log' => $record ] ]; $record['formatted'] = $this->getFormatter()->format($record); $this->write($record); return false === $this->bubble; } }