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

Method emit

Lib/logging/handlers.py:536–544  ·  view source on GitHub ↗

Emit a record. If underlying file has changed, reopen the file before emitting the record to it.

(self, record)

Source from the content-addressed store, hash-verified

534 self._statstream()
535
536 def emit(self, record):
537 """
538 Emit a record.
539
540 If underlying file has changed, reopen the file before emitting the
541 record to it.
542 """
543 self.reopenIfNeeded()
544 logging.FileHandler.emit(self, record)
545
546
547class SocketHandler(logging.Handler):

Callers

nothing calls this directly

Calls 2

reopenIfNeededMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected