protected function logException(\Exception $exception)
    {
        try {
            $this->logger->error($exception->getMessage() , array('exception' => $exception));
        } catch (\Exception $exception) {
            trigger_error("Error logging Monitor exception: ".$exception->getMessage());
        }
    }
protected function logException(\Exception $exception)
    {
        try {
            $this->logger->error($exception->getMessage() , array('exception' => $exception));
        } catch (\Exception $exception) {
            trigger_error("Error logging Monitor exception: ".$exception->getMessage());
        }
    }
protected function logException ( \ Exception $ exception ) { try { $ this -> logger -> error ( $ exception -> getMessage ( ) , array ( 'exception' => $ exception ) ) ; } catch ( \ Exception $ exception ) { trigger_error ( "Error logging Monitor exception: " . $ exception -> getMessage ( ) ) ; } }
Logs the exception found

@param \Exception $exception
Logs the exception found