code: public function findByJob(BaseJobInterface $job)
      {
          $records = array();
          foreach ($this->findBy(['jobTicket' => $job->getTicket()], ['datetime' => 'ASC']) as $log) {
              /**
               * @var LogInterface $log
               */
              $records[] = $log->toRecord();
          }
  
          return $records;
      }
docs: {@inheritdoc}