예제 #1
0
 def log_message(self, format, *args):
     "overridden from BaseHTTPServer"
     pdlogging.log("ADMIN: %s - - [%s] %s\n" %
                  (self.address_string(),
                   self.log_date_time_string(),
                   format%args))
예제 #2
0
 def log_exception(self):
     nil, t, v, tbinfo = pdlogging.compact_traceback()
     pdlogging.log("ADMIN(Exception) %s - %s: %s %s\n"%
             (ctime(), t,v,tbinfo))
예제 #3
0
 def handle_error(self, request, client_address):
     "overridden from SocketServer.BaseServer"
     nil, t, v, tbinfo = pdlogging.compact_traceback()
     pdlogging.log("ADMIN(Exception) %s - %s: %s %s\n"%
             (ctime(), t,v,tbinfo))