From 48b8580e3008cc36d30cb59e7ea39972fb5008f4 Mon Sep 17 00:00:00 2001 From: Ilya Burtsev Date: Mon, 6 Mar 2017 18:07:14 +0300 Subject: [PATCH] execute registerErrorHandler for init errorLevelMap field --- src/MonologErrorHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MonologErrorHandler.php b/src/MonologErrorHandler.php index d1dea13..82caf13 100644 --- a/src/MonologErrorHandler.php +++ b/src/MonologErrorHandler.php @@ -20,6 +20,9 @@ public function init() parent::init(); $logger = Registry::getInstance($this->loggerName); $this->errorHandler = new ErrorHandler($logger); + + $this->errorHandler->registerErrorHandler(); + $this->errorHandler->registerExceptionHandler(); } /**