Install the plugin via composer:
composer require burzum/cakephp-database-logRun migrations to create the DB log table.
bin/cake bake migrations migrate -p Burzum/DatabaseLogConfigure the log engine in your app.php, pay attention to the className keys:
'Log' => [
'debug' => [
'className' => 'Burzum/DatabaseLog.Database',
'path' => LOGS,
'file' => 'debug',
'levels' => ['notice', 'info', 'debug'],
],
'error' => [
'className' => 'Burzum/DatabaseLog.Database',
'path' => LOGS,
'file' => 'error',
'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
],
]For additional information about logging please read the whole logging section of the official documentation.