MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / emit

Method emit

tools/python-3.11.9-amd64/Lib/logging/handlers.py:663–676  ·  view source on GitHub ↗

Emit a record. Pickles the record and writes it to the socket in binary format. If there is an error with the socket, silently drop the packet. If there was a problem with the socket, re-establishes the socket.

(self, record)

Source from the content-addressed store, hash-verified

661 logging.Handler.handleError(self, record)
662
663 def emit(self, record):
664 """
665 Emit a record.
666
667 Pickles the record and writes it to the socket in binary format.
668 If there is an error with the socket, silently drop the packet.
669 If there was a problem with the socket, re-establishes the
670 socket.
671 """
672 try:
673 s = self.makePickle(record)
674 self.send(s)
675 except Exception:
676 self.handleError(record)
677
678 def close(self):
679 """

Callers

nothing calls this directly

Calls 3

makePickleMethod · 0.95
sendMethod · 0.95
handleErrorMethod · 0.95

Tested by

no test coverage detected