public function handleException(Exception $exception)
    {
        $severity = method_exists($exception, 'getSeverity') ? $exception->getSeverity() : self::ERROR_LEVEL;
        self::singleton()
            ->log(
                $severity,
                $exception->getMessage(),
                [
                    self::CONTEXT_EXCEPTION => get_class($exception),
                    self::CONTEXT_ERROR_FILE => $exception->getFile(),
                    self::CONTEXT_ERROR_LINE => $exception->getLine(),
                    self::CONTEXT_TRACE => $exception->getTrace()
                ]
            );
    }
public function handleException(Exception $exception)
    {
        $severity = method_exists($exception, 'getSeverity') ? $exception->getSeverity() : self::ERROR_LEVEL;
        self::singleton()
            ->log(
                $severity,
                $exception->getMessage(),
                [
                    self::CONTEXT_EXCEPTION => get_class($exception),
                    self::CONTEXT_ERROR_FILE => $exception->getFile(),
                    self::CONTEXT_ERROR_LINE => $exception->getLine(),
                    self::CONTEXT_TRACE => $exception->getTrace()
                ]
            );
    }
public function handleException ( Exception $ exception ) { $ severity = method_exists ( $ exception , 'getSeverity' ) ? $ exception -> getSeverity ( ) : self :: ERROR_LEVEL ; self :: singleton ( ) -> log ( $ severity , $ exception -> getMessage ( ) , [ self :: CONTEXT_EXCEPTION => get_class ( $ exception ) , self :: CONTEXT_ERROR_FILE => $ exception -> getFile ( ) , self :: CONTEXT_ERROR_LINE => $ exception -> getLine ( ) , self :: CONTEXT_TRACE => $ exception -> getTrace ( ) ] ) ; }
Short description of method handleException

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  Exception $exception
Short description of method handleException