$logger
$logger :
Monolog error handler
A facility to enable logging of runtime errors, exceptions and fatal errors.
Quick setup: ErrorHandler::register($logger);
__construct(\Psr\Log\LoggerInterface $logger)
\Psr\Log\LoggerInterface | $logger |
register(\Psr\Log\LoggerInterface $logger, array|false $errorLevelMap = array(), integer|false $exceptionLevel = null, integer|false $fatalLevel = null) : \Monolog\ErrorHandler
Registers a new ErrorHandler for a given Logger
By default it will handle errors, exceptions and fatal errors
\Psr\Log\LoggerInterface | $logger | |
array|false | $errorLevelMap | an array of E_ constant to LogLevel:: constant mapping, or false to disable error handling |
integer|false | $exceptionLevel | a LogLevel::* constant, or false to disable exception handling |
integer|false | $fatalLevel | a LogLevel::* constant, or false to disable fatal error handling |