com\setasign\SetaFramework\Bootstrap
ErrorHandler Describes a logger-aware instance.
File: /SetaFramework/src/Bootstrap/ErrorHandler.php
Class hierarchy
Implements
- \Psr\Log\LoggerAwareInterface
Summary
Constants
ERROR
EVENT_ON_CATCHED_ERROR
Will be called on catching an error
extraParams:
'error' => Throwable
'level' => string
NOTICE
USER_LEVEL
WARNING
Properties
$isDebug
private bool ErrorHandler::$isDebug
$logger
private ?\Psr\Log\LoggerInterface ErrorHandler::$logger
$phpErrorLogger
private ?\Psr\Log\LoggerInterface ErrorHandler::$phpErrorLogger
Methods
__construct()
public ErrorHandler::__construct ()
ErrorHandler constructor.
Parameters
- $eventManager : \com\setasign\SetaFramework\EventManager\EventManager
- $isDebug : bool
addCatchedError()
handleError()
public ErrorHandler::handleError (
int $severity,
string $errstr,
string $errfile,
int $errline
): boolstring $errstr,
string $errfile,
int $errline
Parameters
- $severity : int
- $errstr : string
- $errfile : string
- $errline : int
Exceptions
Throws \ErrorException
setPhpErrorLogger()
Sets a logger instance on the object for php errors.
Parameters
- $logger : \Psr\Log\LoggerInterface
