Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ErrorHandler.php
Go to the documentation of this file.
1 <?php
7 
12 {
16  protected $logger;
17 
21  public function __construct(\Psr\Log\LoggerInterface $logger)
22  {
23  $this->logger = $logger;
24  }
25 
29  public function processException(\Exception $e)
30  {
31  $this->logger->critical($e);
32  }
33 }
__construct(\Psr\Log\LoggerInterface $logger)