MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/logging/__init__.py:931–943  ·  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

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