MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/log.py:208–214  ·  view source on GitHub ↗
(
        self,
        master: master.Master,
    )

Source from the content-addressed store, hash-verified

206 """Emit deprecated `add_log` events from stdlib logging."""
207
208 def __init__(
209 self,
210 master: master.Master,
211 ):
212 super().__init__()
213 self.master = master
214 self.formatter = MitmFormatter(colorize=False)
215
216 def emit(self, record: logging.LogRecord) -> None:
217 entry = LogEntry(

Callers

nothing calls this directly

Calls 2

MitmFormatterClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected