class SqlLogger implements SQLLogger (View source)

A SQL logger that logs to a Flow logger.

Properties

protected LoggerInterface $logger

Methods

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

Logs a SQL statement to the system logger (DEBUG priority).

void
stopQuery()

No description

Details

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

Logs a SQL statement to the system logger (DEBUG priority).

Parameters

string $sql

The SQL to be executed

array $params

The SQL parameters

array $types

The SQL parameter types.

Return Value

void

void stopQuery()

No description

Return Value

void