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

Method setLoggerClass

Lib/logging/__init__.py:1396–1404  ·  view source on GitHub ↗

Set the class to be used when instantiating a logger with this Manager.

(self, klass)

Source from the content-addressed store, hash-verified

1394 return rv
1395
1396 def setLoggerClass(self, klass):
1397 """
1398 Set the class to be used when instantiating a logger with this Manager.
1399 """
1400 if klass != Logger:
1401 if not issubclass(klass, Logger):
1402 raise TypeError("logger not derived from logging.Logger: "
1403 + klass.__name__)
1404 self.loggerClass = klass
1405
1406 def setLogRecordFactory(self, factory):
1407 """

Callers 3

test_set_logger_classMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_set_logger_classMethod · 0.64