PHP code example of mirko-pagliai / cakephp-entity-file-log
1. Go to this page and download the library: Download mirko-pagliai/cakephp-entity-file-log library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mirko-pagliai / cakephp-entity-file-log example snippets
Log::setConfig('error', [
'className' => 'EntityFileLog\Log\Engine\EntityFileLog',
'path' => LOGS,
'file' => 'error',
'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
]);