MCPcopy Create free account
hub / github.com/RustPython/RustPython / StyleAdapter

Class StyleAdapter

Lib/test/test_logging.py:5946–5951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5944
5945
5946class StyleAdapter(logging.LoggerAdapter):
5947 def log(self, level, msg, /, *args, stacklevel=1, **kwargs):
5948 if self.isEnabledFor(level):
5949 msg, kwargs = self.process(msg, kwargs)
5950 self.logger.log(level, Message(msg, args), **kwargs,
5951 stacklevel=stacklevel+1)
5952
5953
5954class LoggerTest(BaseTest, AssertErrorMessage):

Callers 2

test_styled_adapterMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_styled_adapterMethod · 0.68