private function addHandlers(array $handlers) { // We need to reverse the array because Monolog "pushes" handlers to top of the stack foreach (array_reverse($handlers) as $handler) { $this->logger->pushHandler($handler); } }