class LoggerChain implements SQLLogger (View source)

Chains multiple SQLLogger

Methods

addLogger(SQLLogger $logger)

Adds a logger in the chain

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

Logs a SQL statement somewhere.

void
stopQuery()

Mark the last started query as stopped. This can be used for timing of queries.

Details

addLogger(SQLLogger $logger)

Adds a logger in the chain

Parameters

SQLLogger $logger

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

Logs a SQL statement somewhere.

Parameters

string $sql The SQL to be executed.
array $params The SQL parameters.
array $types The SQL parameter types.

Return Value

void

void stopQuery()

Mark the last started query as stopped. This can be used for timing of queries.

Return Value

void