protected function write(array $record)
{
if (!$this->initialized) {
$this->initialize();
}
$this->statement->bindValue('channel', $record['channel'], Type::STRING);
$this->statement->bindValue('level', $record['level'], Type::INTEGER);
$this->statement->bindValue('level_name', $record['level_name'], Type::STRING);
$this->statement->bindValue('message', $record['message'], Type::TEXT);
$this->statement->bindValue('context', $record['context'], Type::TARRAY);
$this->statement->bindValue('extra', $record['extra'], Type::TARRAY);
$this->statement->bindValue('datetime', $record['datetime'], Type::DATETIME);
$this->statement->execute();
}