MCPcopy Index your code
hub / github.com/python/cpython / emit

Method emit

Lib/logging/handlers.py:71–83  ·  view source on GitHub ↗

Emit a record. Output the record to the file, catering for rollover as described in doRollover().

(self, record)

Source from the content-addressed store, hash-verified

69 self.errors = errors
70
71 def emit(self, record):
72 """
73 Emit a record.
74
75 Output the record to the file, catering for rollover as described
76 in doRollover().
77 """
78 try:
79 if self.shouldRollover(record):
80 self.doRollover()
81 logging.FileHandler.emit(self, record)
82 except Exception:
83 self.handleError(record)
84
85 def rotation_filename(self, default_name):
86 """

Callers

nothing calls this directly

Calls 4

shouldRolloverMethod · 0.45
doRolloverMethod · 0.45
emitMethod · 0.45
handleErrorMethod · 0.45

Tested by

no test coverage detected