W3cubDocs

/Symfony 4.1

DbalLogger

class DbalLogger implements SQLLogger

Constants

MAX_STRING_LENGTH
BINARY_DATA_VALUE

Properties

protected $logger
protected $stopwatch

Methods

__construct(LoggerInterface $logger = null, Stopwatch $stopwatch = null)
startQuery($sql, array $params = null, array $types = null)

{@inheritdoc}

stopQuery()

{@inheritdoc}

log(string $message, array $params)

Logs a message.

Details

__construct(LoggerInterface $logger = null, Stopwatch $stopwatch = null)

Parameters

LoggerInterface $logger
Stopwatch $stopwatch

startQuery($sql, array $params = null, array $types = null)

{@inheritdoc}

Parameters

$sql
array $params
array $types

stopQuery()

{@inheritdoc}

protected log(string $message, array $params)

Logs a message.

Parameters

string $message A message to log
array $params The context

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Logger/DbalLogger.html