Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 834 Bytes

File metadata and controls

34 lines (27 loc) · 834 Bytes

Installation

Install the plugin via composer:

composer require burzum/cakephp-database-log

Run migrations to create the DB log table.

bin/cake bake migrations migrate -p Burzum/DatabaseLog

Configure 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.