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

Method log

Lib/logging/__init__.py:1942–1949  ·  view source on GitHub ↗

Delegate a log call to the underlying logger, after adding contextual information from this adapter instance.

(self, level, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

1940 self.log(CRITICAL, msg, *args, **kwargs)
1941
1942 def log(self, level, msg, *args, **kwargs):
1943 """
1944 Delegate a log call to the underlying logger, after adding
1945 contextual information from this adapter instance.
1946 """
1947 if self.isEnabledFor(level):
1948 msg, kwargs = self.process(msg, kwargs)
1949 self.logger.log(level, msg, *args, **kwargs)
1950
1951 def isEnabledFor(self, level):
1952 """

Callers 7

debugMethod · 0.95
infoMethod · 0.95
warningMethod · 0.95
errorMethod · 0.95
exceptionMethod · 0.95
criticalMethod · 0.95
test_flatMethod · 0.95

Calls 3

isEnabledForMethod · 0.95
processMethod · 0.95
logMethod · 0.45

Tested by 1

test_flatMethod · 0.76