LoggerChain
in package
implements
SQLLogger
Chains multiple SQLLogger.
Tags
Interfaces, Classes, Traits and Enums
- SQLLogger
- Interface for SQL loggers.
Table of Contents
- $loggers : iteratable<string|int, SQLLogger>
- __construct() : mixed
- startQuery() : void
- Logs a SQL statement somewhere.
- stopQuery() : void
- Marks the last started query as stopped. This can be used for timing of queries.
Properties
$loggers
private
iteratable<string|int, SQLLogger>
$loggers
Methods
__construct()
public
__construct([iteratable<string|int, SQLLogger> $loggers = [] ]) : mixed
Parameters
- $loggers : iteratable<string|int, SQLLogger> = []
Return values
mixed —startQuery()
Logs a SQL statement somewhere.
public
startQuery(mixed $sql[, array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $types = null ]) : void
Parameters
- $sql : mixed
-
SQL statement
- $params : array<string|int, mixed>|null = null
-
Statement parameters
- $types : array<string|int, mixed>|null = null
-
Parameter types
Return values
void —stopQuery()
Marks the last started query as stopped. This can be used for timing of queries.
public
stopQuery() : void