MCPcopy Create free account
hub / github.com/dobin/SuperMega / emit

Method emit

log.py:37–40  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

35
36class ListHandler(logging.Handler):
37 def emit(self, record):
38 # Format the log record and store it in the list
39 log_entry = self.format(record)
40 observer.add_log(log_entry)
41
42
43def setup_logging(level = logging.DEBUG):

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
add_logMethod · 0.80

Tested by

no test coverage detected