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(),
        ];
    }
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(),
        ];
    }
{@inheritdoc}