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

Method log

Lib/test/test_logging.py:6089–6093  ·  view source on GitHub ↗
(self, level, msg, /, *args, stacklevel=1, **kwargs)

Source from the content-addressed store, hash-verified

6087
6088class StyleAdapter(logging.LoggerAdapter):
6089 def log(self, level, msg, /, *args, stacklevel=1, **kwargs):
6090 if self.isEnabledFor(level):
6091 msg, kwargs = self.process(msg, kwargs)
6092 self.logger.log(level, Message(msg, args), **kwargs,
6093 stacklevel=stacklevel+1)
6094
6095
6096class LoggerTest(BaseTest, AssertErrorMessage):

Callers 15

test_styled_adapterMethod · 0.95
__rpow__Method · 0.45
test_logsMethod · 0.45
test_bit_lengthMethod · 0.45
check_stack_sizeFunction · 0.45
CMathTestsClass · 0.45
test_flatMethod · 0.45
test_nested_explicitMethod · 0.45
test_nested_inheritedMethod · 0.45

Calls 3

MessageClass · 0.70
isEnabledForMethod · 0.45
processMethod · 0.45

Tested by

no test coverage detected