MCPcopy Create free account
hub / github.com/mlco2/codecarbon / TestHandler

Class TestHandler

tests/test_rapl_parameters.py:342–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340 log_records = []
341
342 class TestHandler(logging.Handler):
343 def emit(self, record):
344 log_records.append(record)
345
346 test_handler = TestHandler()
347 test_handler.setLevel(logging.INFO)

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…