(self, request)
Log a request's result to the logfile, by default in combined log format.
Log a request's result to the logfile, by default in combined log format.
Log a request s result to the logfile by default in combined log format .
def log(self, request):
        """
        Log a request's result to the logfile, by default in combined log format.
        """
        if config.logreqs:
            line = "127.0.0.1 (%s) - - %s \"%s\" %s %s \"%s\" \"%s\"\n" % (
                self._escape(request.getHeader(b'host')),
                self._logDateTime,
                '%s %s %s' % (self._escape(request.method),
                              self._escape(request.uri),
                              self._escape(request.clientproto)),
                request.code,
                request.sentLength or "-",
                self._escape(request.getHeader(b'referer') or "-"),
                self._escape(request.getHeader(b'user-agent') or "-"))

            rpc("log_access", str(line))
def log ( self , request ) : if config . logreqs : line = "127.0.0.1 (%s) - - %s \"%s\" %s %s \"%s\" \"%s\"\n" % ( self . _escape ( request . getHeader ( b'host' ) ) , self . _logDateTime , '%s %s %s' % ( self . _escape ( request . method ) , self . _escape ( request . uri ) , self . _escape ( request . clientproto ) ) , request . code , request . sentLength or "-" , self . _escape ( request . getHeader ( b'referer' ) or "-" ) , self . _escape ( request . getHeader ( b'user-agent' ) or "-" ) ) rpc ( "log_access" , str ( line ) )