Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(90)  |  Call(90)  |  Derive(0)  |  Import(0)
Return the client address formatted for logging.

This version looks up the full hostname using gethostbyaddr(),
and tries to find a name that contains at least one dot.

src/c/o/condor-agent-HEAD/condor_agent.py   condor-agent(Download)
    def log_message(self, format, *args):
        # the default is to write to stderr so we override it
        logging.info("%s - - [%s] %s\n" % 
                     (self.address_string(),
                      self.log_date_time_string(),

src/r/j/rjzserver-HEAD/src/server.py   rjzserver(Download)
    def log_message(self, format, *args):
        self.server.Output("%s - - [%s] %s" % (self.address_string(), self.log_date_time_string(), format%args))
 
class RjzServer(HTTPServer):
    def __init__(self, outputfn):

src/t/e/textblob-0.8.4/textblob/nltk/app/wordnet_app.py   textblob(Download)
            logfile.write(
                "%s - - [%s] %s\n" %
                (self.address_string(),
                 self.log_date_time_string(),
                 format%args))

src/t/e/TextBlob-HEAD/textblob/nltk/app/wordnet_app.py   TextBlob(Download)
            logfile.write(
                "%s - - [%s] %s\n" %
                (self.address_string(),
                 self.log_date_time_string(),
                 format%args))

src/p/a/pathos-HEAD/pathos/XMLRPCRequestHandler.py   pathos(Download)
    def log_message(self, format, *args):
        """ Overriding BaseHTTPRequestHandler.log_message() """
 
        self._debug.log("%s - - [%s] %s\n" %
                        (self.address_string(),

src/n/l/nltk-HEAD/nltk/app/wordnet_app.py   nltk(Download)
            logfile.write(
                "%s - - [%s] %s\n" %
                (self.address_string(),
                 self.log_date_time_string(),
                 format%args))

src/m/e/me2-0.1a1/me2/lib/socklib/rest/server.py   me2(Download)
        except: rf = "-"
        if hasattr(self, 'path'):
            logging.debug('rest.server - %s "%s %s %s" %s %s "%s" "%s"' % (self.address_string(), self.command, self.path, self.request_version, code, self.size, rf, ua))
        else:
            logging.debug('rest.server - %s "%s %s %s" %s %s "%s" "%s"' % (self.address_string(), self.command, "none", self.request_version, code, self.size, rf, ua))

src/c/d/cdmi-serve-HEAD/src/serve.py   cdmi-serve(Download)
    def log_message(self, format, *args):
        msg = "%s %s" % ( self.address_string(), format%args )
        logging.info( msg )
 
# vim: expandtab shiftwidth=4 softtabstop=4 textwidth=79:

src/w/3/w3af-HEAD/w3af/core/controllers/daemons/webserver.py   w3af(Download)
        to the om.
        """
        message = "webserver.py: %s - %s" % (self.address_string(), fmt % args)
        om.out.debug(message)
 

src/j/s/jsonbot-HEAD/jsb/lib/socklib/rest/server.py   jsonbot(Download)
        except: rf = "-"
        if hasattr(self, 'path'):
            logging.debug('rest.server - %s "%s %s %s" %s %s "%s" "%s"' % (self.address_string(), self.command, self.path, self.request_version, code, self.size, rf, ua))
        else:
            logging.debug('rest.server - %s "%s %s %s" %s %s "%s" "%s"' % (self.address_string(), self.command, "none", self.request_version, code, self.size, rf, ua))

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next