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

Class RecordingHandler

Lib/test/test_logging.py:5045–5053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5043
5044
5045class RecordingHandler(logging.NullHandler):
5046
5047 def __init__(self, *args, **kwargs):
5048 super(RecordingHandler, self).__init__(*args, **kwargs)
5049 self.records = []
5050
5051 def handle(self, record):
5052 """Keep track of all the emitted records."""
5053 self.records.append(record)
5054
5055
5056class ShutdownTest(BaseTest):

Callers 5

test_formattingMethod · 0.85
_test_logMethod · 0.85
test_dict_argMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85

Calls

no outgoing calls

Tested by 5

test_formattingMethod · 0.68
_test_logMethod · 0.68
test_dict_argMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…