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

Method emit

Lib/logging/handlers.py:1361–1370  ·  view source on GitHub ↗

Emit a record. Append the record. If shouldFlush() tells us to, call flush() to process the buffer.

(self, record)

Source from the content-addressed store, hash-verified

1359 return (len(self.buffer) >= self.capacity)
1360
1361 def emit(self, record):
1362 """
1363 Emit a record.
1364
1365 Append the record. If shouldFlush() tells us to, call flush() to process
1366 the buffer.
1367 """
1368 self.buffer.append(record)
1369 if self.shouldFlush(record):
1370 self.flush()
1371
1372 def flush(self):
1373 """

Callers

nothing calls this directly

Calls 3

shouldFlushMethod · 0.95
flushMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected