class DbalLogger implements SQLLogger

Constants

MAX_STRING_LENGTH

BINARY_DATA_VALUE

Properties

protected $logger
protected $stopwatch

Methods

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

No description

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