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

Method emit

Lib/logging/handlers.py:1522–1531  ·  view source on GitHub ↗

Emit a record. Writes the LogRecord to the queue, preparing it for pickling first.

(self, record)

Source from the content-addressed store, hash-verified

1520 return record
1521
1522 def emit(self, record):
1523 """
1524 Emit a record.
1525
1526 Writes the LogRecord to the queue, preparing it for pickling first.
1527 """
1528 try:
1529 self.enqueue(self.prepare(record))
1530 except Exception:
1531 self.handleError(record)
1532
1533
1534class QueueListener(object):

Callers

nothing calls this directly

Calls 3

enqueueMethod · 0.95
prepareMethod · 0.95
handleErrorMethod · 0.45

Tested by

no test coverage detected