Syed mohamed aladeen
Syed mohamed aladeen

Reputation: 6755

How to disable the error log file in cakephp

here I try to disable the error log and debug log files, even when the core is enabled.

I tried the following code.

Configure::write('Error', array(
  'handler' => 'ErrorHandler::handleError',
  'level' => 0,
  'trace' => false
));

but it only disables debug log.

is there any other way to disable error log and debug log file?

Upvotes: 0

Views: 2132

Answers (1)

Ankush Tanwar
Ankush Tanwar

Reputation: 239

try adding

another parameter as 'log' and set it to true

Or you can use constant LOG_DEBUG in your core.php and set it to true.

The details of which are given here http://book.cakephp.org/2.0/en/development/configuration.html

Upvotes: 1

Related Questions