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()
        );
    }