Logger
Responsible for logging database query events.
- Full name:
\PhalconKit\Db\Events\Logger - Parent class:
\PhalconKit\Di\Injectable
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. - \Phalcon\Logger\Exception|\Exception