Skip to content

Logger

Responsible for logging database query events.

Properties

inProgress

public bool $inProgress

Methods

beforeQuery

Executes before a database query is executed.

public beforeQuery(\Phalcon\Events\EventInterface $event, \Phalcon\Db\Adapter\AbstractAdapter $connection): void

Parameters:

Parameter Type Description
$event \Phalcon\Events\EventInterface The event object.
$connection \Phalcon\Db\Adapter\AbstractAdapter The database connection object.

Throws:

If an error occurs while logging.