Phprest\Config::getLogHandler PHP Method

getLogHandler() public method

public getLogHandler ( ) : Log
return Phprest\ErrorHandler\Handler\Log
    public function getLogHandler()
    {
        return $this->logHandler;
    }

Usage Example

コード例 #1
0
ファイル: Application.php プロジェクト: phprest/phprest
 /**
  * @return void
  */
 protected function setErrorHandler()
 {
     $app = $this;
     $this->configuration->getLogHandler()->setLogger($this->serviceLogger());
     $this->configuration->getErrorHandler()->pushHandler($this->configuration->getLogHandler());
     $this->configuration->getErrorHandler()->register();
     $this->setExceptionDecorator(function (\Exception $e) use($app) {
         $formatter = new ErrorHandler\Formatter\JsonXml($app->configuration);
         return new Response($formatter->format($e), http_response_code());
     });
 }
All Usage Examples Of Phprest\Config::getLogHandler