public function __construct($name, $loggers = [], $processors = []) { try { $this->logger = $this->createWrapper($name, $loggers, $processors); } catch (Error $ex) { throw new InstantiationException("Logger could not be constructed.", $ex); } catch (Exception $ex) { throw new InstantiationException("Logger could not be constructed.", $ex); } }