ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Monolog error handler. More...
Public Member Functions | |
__construct (LoggerInterface $logger) | |
registerExceptionHandler ($level=null, $callPrevious=true) | |
registerErrorHandler (array $levelMap=array(), $callPrevious=true, $errorTypes=-1) | |
registerFatalHandler ($level=null, $reservedMemorySize=20) | |
handleException ($e) | |
handleError ($code, $message, $file='', $line=0, $context=array()) | |
handleFatalError () | |
Static Public Member Functions | |
static | register (LoggerInterface $logger, $errorLevelMap=array(), $exceptionLevel=null, $fatalLevel=null) |
Registers a new ErrorHandler for a given Logger. More... | |
Protected Member Functions | |
defaultErrorLevelMap () | |
Static Private Member Functions | |
static | codeToString ($code) |
Private Attributes | |
$logger | |
$previousExceptionHandler | |
$uncaughtExceptionLevel | |
$previousErrorHandler | |
$errorLevelMap | |
$fatalLevel | |
$reservedMemory | |
Static Private Attributes | |
static | $fatalErrors = array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR) |
Monolog error handler.
A facility to enable logging of runtime errors, exceptions and fatal errors.
Quick setup: ErrorHandler::register($logger);
Definition at line 26 of file ErrorHandler.php.
Monolog\ErrorHandler::__construct | ( | LoggerInterface | $logger | ) |
Definition at line 40 of file ErrorHandler.php.
|
staticprivate |
Definition at line 173 of file ErrorHandler.php.
References $code.
|
protected |
Definition at line 98 of file ErrorHandler.php.
Monolog\ErrorHandler::handleError | ( | $code, | |
$message, | |||
$file = '' , |
|||
$line = 0 , |
|||
$context = array() |
|||
) |
Definition at line 140 of file ErrorHandler.php.
Monolog\ErrorHandler::handleException | ( | $e | ) |
Definition at line 122 of file ErrorHandler.php.
References exit.
Monolog\ErrorHandler::handleFatalError | ( | ) |
Definition at line 159 of file ErrorHandler.php.
|
static |
Registers a new ErrorHandler for a given Logger.
By default it will handle errors, exceptions and fatal errors
LoggerInterface | $logger | |
array | false | $errorLevelMap | an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling |
int | false | $exceptionLevel | a LogLevel::* constant, or false to disable exception handling |
int | false | $fatalLevel | a LogLevel::* constant, or false to disable fatal error handling |
Definition at line 56 of file ErrorHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandlerTest\testError().
Monolog\ErrorHandler::registerErrorHandler | ( | array | $levelMap = array() , |
$callPrevious = true , |
|||
$errorTypes = -1 |
|||
) |
Definition at line 81 of file ErrorHandler.php.
Monolog\ErrorHandler::registerExceptionHandler | ( | $level = null , |
|
$callPrevious = true |
|||
) |
Definition at line 72 of file ErrorHandler.php.
Monolog\ErrorHandler::registerFatalHandler | ( | $level = null , |
|
$reservedMemorySize = 20 |
|||
) |
Definition at line 90 of file ErrorHandler.php.
|
private |
Definition at line 34 of file ErrorHandler.php.
|
staticprivate |
Definition at line 38 of file ErrorHandler.php.
|
private |
Definition at line 36 of file ErrorHandler.php.
|
private |
Definition at line 28 of file ErrorHandler.php.
|
private |
Definition at line 33 of file ErrorHandler.php.
|
private |
Definition at line 30 of file ErrorHandler.php.
|
private |
Definition at line 37 of file ErrorHandler.php.
|
private |
Definition at line 31 of file ErrorHandler.php.