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

Method log

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

1948 self.log(CRITICAL, msg, *args, **kwargs)
1949
1950 def log(self, level, msg, *args, **kwargs):
1951 """
1952 Delegate a log call to the underlying logger, after adding
1953 contextual information from this adapter instance.
1954 """
1955 if self.isEnabledFor(level):
1956 msg, kwargs = self.process(msg, kwargs)
1957 self.logger.log(level, msg, *args, **kwargs)
1958
1959 def isEnabledFor(self, level):
1960 """

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