Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
6072
class
PrefixAdapter(logging.LoggerAdapter):
6073
prefix =
'Adapter'
6074
6075
def
process(self, msg, kwargs):
6076
return
f
"{self.prefix} {msg}"
, kwargs
6077
6078
6079
class
Message:
Callers
2
test_nested
Method · 0.85
test_nested_styled_adapter
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_nested
Method · 0.68
test_nested_styled_adapter
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…