Lines Matching refs:record

68     def emit(self, record):
70 Emit a record.
72 Output the record to the file, catering for rollover as described
76 if self.shouldRollover(record):
78 logging.FileHandler.emit(self, record)
82 self.handleError(record)
144 def shouldRollover(self, record):
148 Basically, see if the supplied record would cause the file to exceed
154 msg = "%s\n" % self.format(record)
281 def shouldRollover(self, record):
285 record is not used, as we are just comparing times, but it is needed so
401 def emit(self, record):
403 Emit a record.
430 logging.FileHandler.emit(self, record)
441 To unpickle the record at the receiving end into a LogRecord, use the
532 def makePickle(self, record):
534 Pickles the record in binary format with a length prefix, and
537 ei = record.exc_info
539 # just to get traceback text into record.exc_text ...
540 dummy = self.format(record)
541 record.exc_info = None # to avoid Unpickleable error
545 d = dict(record.__dict__)
546 d['msg'] = record.getMessage()
550 record.exc_info = ei # for next handler
554 def handleError(self, record):
566 logging.Handler.handleError(self, record)
568 def emit(self, record):
570 Emit a record.
572 Pickles the record and writes it to the socket in binary format.
578 s = self.makePickle(record)
583 self.handleError(record)
605 To unpickle the record at the receiving end into a LogRecord, use the
836 def emit(self, record):
838 Emit a record.
840 The record is formatted, and then sent to the syslog server. If
843 msg = self.format(record) + '\000'
845 We need to convert record level to lowercase, maybe this will
849 self.mapPriority(record.levelname))
868 self.handleError(record)
907 def getSubject(self, record):
911 If you want to specify a subject line which is record-dependent,
916 def emit(self, record):
918 Emit a record.
920 Format the record and send it to the specified addressees.
929 msg = self.format(record)
933 self.getSubject(record),
946 self.handleError(record)
984 def getMessageID(self, record):
986 Return the message ID for the event record. If you are using your
994 def getEventCategory(self, record):
996 Return the event category for the record.
1003 def getEventType(self, record):
1005 Return the event type for the record.
1014 return self.typemap.get(record.levelno, self.deftype)
1016 def emit(self, record):
1018 Emit a record.
1025 id = self.getMessageID(record)
1026 cat = self.getEventCategory(record)
1027 type = self.getEventType(record)
1028 msg = self.format(record)
1033 self.handleError(record)
1066 def mapLogRecord(self, record):
1068 Default implementation of mapping the log record into a dict
1072 return record.__dict__
1074 def emit(self, record):
1076 Emit a record.
1078 Send the record to the Web server as a percent-encoded dictionary
1085 data = urllib.urlencode(self.mapLogRecord(record))
1108 self.handleError(record)
1113 record is added to the buffer, a check is made to see if the buffer should
1124 def shouldFlush(self, record):
1133 def emit(self, record):
1135 Emit a record.
1137 Append the record. If shouldFlush() tells us to, call flush() to process
1140 self.buffer.append(record)
1141 if self.shouldFlush(record):
1183 def shouldFlush(self, record):
1185 Check for buffer full or a record at the flushLevel or higher.
1188 (record.levelno >= self.flushLevel)
1205 for record in self.buffer:
1206 self.target.handle(record)