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

Method __init__

Lib/logging/__init__.py:934–946  ·  view source on GitHub ↗

Initializes the instance - basically setting the formatter to None and the filter list to empty.

(self, level=NOTSET)

Source from the content-addressed store, hash-verified

932 the 'raw' message as determined by record.message is logged.
933 """
934 def __init__(self, level=NOTSET):
935 """
936 Initializes the instance - basically setting the formatter to None
937 and the filter list to empty.
938 """
939 Filterer.__init__(self)
940 self._name = None
941 self.level = _checkLevel(level)
942 self.formatter = None
943 self._closed = False
944 # Add the handler to the global _handlerList (for cleanup on shutdown)
945 _addHandlerRef(self)
946 self.createLock()
947
948 def get_name(self):
949 return self._name

Callers

nothing calls this directly

Calls 4

createLockMethod · 0.95
_checkLevelFunction · 0.85
_addHandlerRefFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected