def log_message(self, fmt, *args):
"""Override logging settings of base class
This method reformats standard request logging provided by the base
class BaseHTTPRequestHandler and sends it to logger/formatter
configured by the user during logging module initialization
Args:
fmt, args: just like base class
"""
logging.info("REQ: {0} {1}".format(self.address_string(), fmt % args))
评论列表
文章目录