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

Class StyleAdapter

Lib/test/test_logging.py:6088–6093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6086
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 2

test_styled_adapterMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_styled_adapterMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…