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

Class PrefixAdapter

Lib/test/test_logging.py:6072–6076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6070
6071
6072class PrefixAdapter(logging.LoggerAdapter):
6073 prefix = 'Adapter'
6074
6075 def process(self, msg, kwargs):
6076 return f"{self.prefix} {msg}", kwargs
6077
6078
6079class Message:

Callers 2

test_nestedMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_nestedMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…