|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Monolog error handler. More...
Collaboration diagram for Monolog\ErrorHandler:Public Member Functions | |
| __construct (LoggerInterface $logger) | |
| registerExceptionHandler ($level=null, $callPrevious=true) | |
| registerErrorHandler (array $levelMap=array(), $callPrevious=true, $errorTypes=-1, $handleOnlyReportedErrors=true) | |
| 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 | |
| $handleOnlyReportedErrors | |
| $hasFatalErrorHandler | |
| $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 27 of file ErrorHandler.php.
| Monolog\ErrorHandler::__construct | ( | LoggerInterface | $logger | ) |
Definition at line 43 of file ErrorHandler.php.
|
staticprivate |
Definition at line 190 of file ErrorHandler.php.
References $code.
|
protected |
Definition at line 104 of file ErrorHandler.php.
| Monolog\ErrorHandler::handleError | ( | $code, | |
| $message, | |||
$file = '', |
|||
$line = 0, |
|||
$context = array() |
|||
| ) |
Definition at line 146 of file ErrorHandler.php.
| Monolog\ErrorHandler::handleException | ( | $e | ) |
Definition at line 128 of file ErrorHandler.php.
| Monolog\ErrorHandler::handleFatalError | ( | ) |
Definition at line 168 of file ErrorHandler.php.
References $handler.
|
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 59 of file ErrorHandler.php.
References $handler.
Referenced by Monolog\Handler\PHPConsoleHandlerTest\testError().
Here is the caller graph for this function:| Monolog\ErrorHandler::registerErrorHandler | ( | array | $levelMap = array(), |
$callPrevious = true, |
|||
$errorTypes = -1, |
|||
$handleOnlyReportedErrors = true |
|||
| ) |
Definition at line 84 of file ErrorHandler.php.
| Monolog\ErrorHandler::registerExceptionHandler | ( | $level = null, |
|
$callPrevious = true |
|||
| ) |
Definition at line 75 of file ErrorHandler.php.
| Monolog\ErrorHandler::registerFatalHandler | ( | $level = null, |
|
$reservedMemorySize = 20 |
|||
| ) |
Definition at line 95 of file ErrorHandler.php.
|
private |
Definition at line 35 of file ErrorHandler.php.
|
staticprivate |
Definition at line 41 of file ErrorHandler.php.
|
private |
Definition at line 39 of file ErrorHandler.php.
|
private |
Definition at line 36 of file ErrorHandler.php.
|
private |
Definition at line 38 of file ErrorHandler.php.
|
private |
Definition at line 29 of file ErrorHandler.php.
|
private |
Definition at line 34 of file ErrorHandler.php.
|
private |
Definition at line 31 of file ErrorHandler.php.
|
private |
Definition at line 40 of file ErrorHandler.php.
|
private |
Definition at line 32 of file ErrorHandler.php.