From e88cdc8a01ee2747a258411e4ec926f6289eea28 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 21 Nov 2010 00:59:14 -0500 Subject: [PATCH] Adding more documentation. --- cake/libs/error_handler.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cake/libs/error_handler.php b/cake/libs/error_handler.php index 6a677162c55..e79a4cb1b22 100644 --- a/cake/libs/error_handler.php +++ b/cake/libs/error_handler.php @@ -49,6 +49,18 @@ * Finally, in your `app/config/bootstrap.php` you can configure use `set_exception_handler()` * to take total control over application exception handling. * + * #### Logging exceptions + * + * You can log all the exceptions that are dealt with by ErrorHandler by setting `Exception.log` to true + * in your core.php. Enabling this will log every exception to CakeLog and the configured loggers. + * + * ### PHP errors + * + * Error handler also provides the built in features for handling php errors (trigger_error). + * While in debug mode, errors will be output to the screen using debugger. While in production mode, + * errors will be logged to CakeLog. You can control which errors are logged by setting + * `Error.level` in your core.php. + * * @package cake * @subpackage cake.cake.libs */