code: public function toRecord()
      {
          return [
              'channel' => $this->getChannel(),
              'level' => $this->getLevel(),
              'level_name' => $this->getLevelName(),
              'message' => $this->getMessage(),
              'datetime' => $this->getDatetime(),
              'context' => $this->getContext(),
              'extra' => $this->getExtra(),
          ];
      }
docs: {@inheritdoc}