PHP Class Tools\Error\ErrorHandler

All you need to do is: - switch use Cake\Error\ErrorHandler; with use Tools\Error\ErrorHandler; in your bootstrap - Make sure you got the 404 log defined either in your app.php or as Log::config() call. Example config as scoped one: - 'className' => 'Cake\Log\Engine\FileLog', - 'path' => LOGS, - 'file'=> '404', - 'levels' => ['error'], - 'scopes' => ['404'] If you don't want the errors to also show up in the debug and error log, make sure you set 'scopes' => false for those two in your app.php file. In case you need custom 404 mappings for some additional custom exceptions, make use of log404 option. It will overwrite the current defaults completely.
Inheritance: extends Cake\Error\ErrorHandler
Mostra file Open project: dereuromark/cakephp-tools

Protected Methods

Method Description
_logException ( Exception $exception ) : boolean Handles exception logging

Method Details

_logException() protected method

Handles exception logging
protected _logException ( Exception $exception ) : boolean
$exception Exception Exception instance.
return boolean