Showing posts with label error log. Show all posts
Showing posts with label error log. Show all posts

Friday, 3 January 2020

Cakephp write custom log


Code:

CakeLog::config('customlog', array(

 'engine' => 'File',

 'path' => WWW_ROOT.'files/log/'

));


customlog - Logname


path - Yourself to set customize whatever you need



Code:


CakeLog::write('customlog', 'Log data');

Thursday, 25 September 2014

To set the PHP error log location in php.ini directives

PHP error log location in php.ini file
Enable:
error_log = /path/filename
Disable
;error_log = /path/filename