QueryLogger
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- log() : mixed
- Log the query
- checkRotation() : void
- Check for log rotation
Properties
$logFile
private
string
$logFile
$maxSize
private
string
$maxSize
Methods
__construct()
public
__construct([string $filename = 'queries.log' ][, int $maxSize = 10 ]) : mixed
Parameters
- $filename : string = 'queries.log'
- $maxSize : int = 10
log()
Log the query
public
log(string $query[, array<string|int, mixed>|null $params = [] ]) : mixed
Parameters
- $query : string
- $params : array<string|int, mixed>|null = []
checkRotation()
Check for log rotation
private
checkRotation() : void