def mapLogRecord(self, record):
     record_modified = HTTPHandler.mapLogRecord(self, record)
     record_modified['logPath'] = self.logPath
     try:
         record_modified['msg'] = self.format(record)
     except:
         pass
     return record_modified
 def mapLogRecord(self, record):
     record_modified = HTTPHandler.mapLogRecord(self, record)
     record_modified['logPath'] = self.logPath
     try:
         record_modified['msg'] = self.format(record)
     except:
         pass
     return record_modified
 def mapLogRecord(self, record):
     record_modified = HTTPHandler.mapLogRecord(self, record)
     try:
         record_modified['msg'] = self.format(record)
     except:
         pass
     record_modified['exc_info'] = format_exc_info(record_modified['exc_info'])
     record_modified['args'] = str(record_modified['args'])
     return record_modified
    def mapLogRecord(self, record):
        """Map log record as required format of HTTP/HTTPS server"""
        record_modified = HTTPHandler.mapLogRecord(self, record)
        if self.formatter is not None:
            record_modified['t'] = self.formatter.format(record)
        else:
            record_modified['t'] = record_modified['msg'].encode('utf-8')

        record_modified['no_date'] = self.no_date
        return record_modified
 def mapLogRecord(self, record):
     """
     Map log record as required format of HTTP/HTTPS server
     :param record:
     :return:
     """
     record_modified = HTTPHandler.mapLogRecord(self, record)
     record_modified['logPath'] = self.logPath
     record_modified['msg'] = record_modified['msg'].encode('utf-8')
     return record_modified