Class Support_ErrorLogger

Description

Utility to log PHP errors when they occur. Requires log_error to be registered with set_error_handler.

Located in /support/lib/Support/ErrorLogger.php (line 10)


	
			
Variable Summary
 static mixed $previousHandler
Method Summary
 static void default_error_handler ( $errno,  $errstr,  $file,  $line,  $ctx)
 static void handle_error ( $errno,  $errstr, [ $file = null], [ $line = null], [ $ctx = null])
 static void register ()
Variables
static mixed $previousHandler (line 12)

Set to the previously registered handler which will be invoked after logging the error

  • access: protected
Methods
static default_error_handler (line 69)

Passes on the actual error to the previous handler or to the default handler

  • access: protected
void default_error_handler ( $errno,  $errstr,  $file,  $line,  $ctx)
  • $errno
  • $errstr
  • $file
  • $line
  • $ctx
static handle_error (line 31)

Invoked when errors occur. Respects the error_reporting setting.

  • access: public
void handle_error ( $errno,  $errstr, [ $file = null], [ $line = null], [ $ctx = null])
  • $errno
  • $errstr
  • $file
  • $line
  • $ctx
static register (line 24)

Register the logger

  • access: public
void register ()

Documentation generated on Wed, 25 Apr 2012 09:46:42 -0700 by phpDocumentor 1.4.3