\HttpLog\ErrorsErrorHandler

Code insipration and logic taken from: http://php.net/manual/en/function.set-error-handler.php

Summary

Methods
Properties
Constants
create()
handle_error()
handle_fatal_errors()
output_fatal_error()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
map_error()
No private properties found
N/A

Methods

create()

create() : void

Set the error handler methods.

handle_error()

handle_error(  $code,   $description,   $file = NULL,   $line = NULL) : void

Error handler.

The custom error-handling function.

Parameters

$code
$description
$file
$line

handle_fatal_errors()

handle_fatal_errors() : void

Handle fatal errors.

The code for handling otherwise uncatchable fatal PHP errors.

output_fatal_error()

output_fatal_error(array  $error, boolean  $echo_as_json = true) : void

Log fatal errors.

Log and output fatal PHP errors.

Parameters

array $error

Fatal error data.

boolean $echo_as_json

Whether to echo the error data as JSON or not.

map_error()

map_error(integer  $code) : array

Map errors.

Using the error code, determine the type and severity of error.

Parameters

integer $code

Error code.

Returns

array —

Error severity and type.