module/Core/src/Grid/Core/Controller/RpcController.php
public function logException( Exception $exception,
                                  $priority = Logger::CRIT )
    {
        /* @var $logger \Zork\Log\LoggerManager */
        $logger = $this->getServiceLocator()
                       ->get( 'Zork\Log\LoggerManager' );

        if ( $logger->hasLogger( 'exception' ) )
        {
            $logger->getLogger( 'exception' )
                   ->log( $priority,
                          '<pre>' . $exception . PHP_EOL . '</pre>' . PHP_EOL );
        }
    }
public function logException( Exception $exception,
                                  $priority = Logger::CRIT )
    {
        /* @var $logger \Zork\Log\LoggerManager */
        $logger = $this->getServiceLocator()
                       ->get( 'Zork\Log\LoggerManager' );

        if ( $logger->hasLogger( 'exception' ) )
        {
            $logger->getLogger( 'exception' )
                   ->log( $priority,
                          '<pre>' . $exception . PHP_EOL . '</pre>' . PHP_EOL );
        }
    }
public function logException ( Exception $ exception , $ priority = Logger :: CRIT ) { /* @var $logger \Zork\Log\LoggerManager */ $ logger = $ this -> getServiceLocator ( ) -> get ( 'Zork\Log\LoggerManager' ) ; if ( $ logger -> hasLogger ( 'exception' ) ) { $ logger -> getLogger ( 'exception' ) -> log ( $ priority , '<pre>' . $ exception . PHP_EOL . '</pre>' . PHP_EOL ) ; } }
Log a single exception

@param   \Exception  $exception
@param   int         $priority
Log a single exception