From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/general/errors.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'user_guide/general/errors.html') diff --git a/user_guide/general/errors.html b/user_guide/general/errors.html index 16db19e41..70ee10213 100644 --- a/user_guide/general/errors.html +++ b/user_guide/general/errors.html @@ -12,7 +12,7 @@ @@ -62,15 +62,15 @@ Error Handling

Error Handling

-

Code Igniter lets you build error reporting into your applications using the functions described below. +

Code Igniter lets you build error reporting into your applications using the functions described below. In addition, it has an error logging class that permits error and debugging messages to be saved as text files.

-

Note: By default, Code Igniter displays all PHP errors. You might +

Note: By default, Code Igniter displays all PHP errors. You might wish to change this behavior once your development is complete. You'll find the error_reporting() function located at the top of your main index.php file. Disabling error reporting will NOT prevent log files from being written if there are errors.

-

Unlike most systems in Code Igniter, the error functions are simple procedural interfaces that are available +

Unlike most systems in Code Igniter, the error functions are simple procedural interfaces that are available globally throughout the application. This approach permits error messages to get triggered without having to worry about class/function scoping.

@@ -90,7 +90,7 @@ Note that Code Igniter automatically shows 404 messages if controllers are not f

log_message('level', 'message')

-

This function lets you write messages to your log files. You must supply one of three "levels" +

This function lets you write messages to your log files. You must supply one of three "levels" in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter. Example:

@@ -116,8 +116,8 @@ log_message('info', 'The purpose of some variable is to provide some value.'); -

Note: In order for the log file to actually be written, the - "logs" folder must be writable. In addition, you must set the "threshold" for logging. +

Note: In order for the log file to actually be written, the + "logs" folder must be writable. In addition, you must set the "threshold" for logging. You might, for example, only want error messages to be logged, and not the other two types. If you set it to zero logging will be disabled.

-- cgit v1.2.3-24-g4f1b