code: protected function write(array $record)
      {
          $log = $this->manager->create();
  
          $record['extra']['job_ticket'] = $this->job->getTicket();
  
          $this->populateLog($log, $record);
  
          $this->manager->save($log);
      }
docs: Sets the job ticket in $record['extra']['job_ticket']
  
  {@inheritdoc}