Arcanedev\LogViewer\Entities\LogEntry::toArray PHP Method

toArray() public method

Get the log entry as an array.
public toArray ( ) : array
return array
    public function toArray()
    {
        return ['level' => $this->level, 'datetime' => $this->datetime->format('Y-m-d H:i:s'), 'header' => $this->header, 'stack' => $this->stack];
    }