MCPcopy Create free account
hub / github.com/LabPy/lantz / MemHandler

Class MemHandler

lantz/testsuite/test_dictfeat.py:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class MemHandler(logging.Handler):
13
14 def __init__(self):
15 super().__init__()
16 self.setFormatter(logging.Formatter(style='{'))
17 self.history = list()
18
19 def emit(self, record):
20 self.history.append(self.format(record))
21
22
23class DictFeatTest(unittest.TestCase):

Callers 2

test_loggerMethod · 0.70
test_unitsMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_loggerMethod · 0.56
test_unitsMethod · 0.56