Documentation

QueryLogger
in package

Table of Contents

Properties

$logFile  : string
$maxSize  : string

Methods

__construct()  : mixed
log()  : mixed
Log the query
checkRotation()  : void
Check for log rotation

Properties

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

        
On this page

Search results