src/Zicht/Bundle/UrlBundle/Logging/Logging.php
public function createLog(Request $request, $message)
    {
        return new ErrorLog(
            $message,
            new \DateTime(),
            $request->headers->get('referer', null),
            $request->headers->get('user-agent', null),
            $request->getClientIp(),
            $request->getRequestUri()
        );
    }
public function createLog(Request $request, $message)
    {
        return new ErrorLog(
            $message,
            new \DateTime(),
            $request->headers->get('referer', null),
            $request->headers->get('user-agent', null),
            $request->getClientIp(),
            $request->getRequestUri()
        );
    }
public function createLog ( Request $ request , $ message ) { return new ErrorLog ( $ message , new \ DateTime ( ) , $ request -> headers -> get ( 'referer' , null ) , $ request -> headers -> get ( 'user-agent' , null ) , $ request -> getClientIp ( ) , $ request -> getRequestUri ( ) ) ; }
Create a log entry for the passed request.

@param \Symfony\Component\HttpFoundation\Request $request
@param string $message
@return \Zicht\Bundle\UrlBundle\Entity\ErrorLog
Create a log entry for the passed request .