Modules\Core\Source\Libs\Logger\SqliteMonologHandler::write PHP Method

write() protected method

Writes the record down to the log of the implementing handler
protected write ( array $record ) : void
$record array
return void
    protected function write(array $record)
    {
        if (!$this->initialized) {
            $this->initialize();
        }
        //'context' contains the array
        $contentArray = array_merge(array('channel' => $record['channel'], 'level' => $record['level'], 'message' => $record['message'] . implode(', ', $record['context']), 'time' => $record['datetime']->format('U')), $record['context']);
        $this->statement->execute($contentArray);
    }