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

Method setLogRecordFactory

Lib/logging/__init__.py:1406–1411  ·  view source on GitHub ↗

Set the factory to be used when instantiating a log record with this Manager.

(self, factory)

Source from the content-addressed store, hash-verified

1404 self.loggerClass = klass
1405
1406 def setLogRecordFactory(self, factory):
1407 """
1408 Set the factory to be used when instantiating a log record with this
1409 Manager.
1410 """
1411 self.logRecordFactory = factory
1412
1413 def _fixupParents(self, alogger):
1414 """

Callers 3

tearDownMethod · 0.80
test_logrecord_classMethod · 0.80

Calls

no outgoing calls

Tested by 3

tearDownMethod · 0.64
test_logrecord_classMethod · 0.64