MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / AddLogHook

Class AddLogHook

mitmproxy/log.py:228–238  ·  view source on GitHub ↗

**Deprecated:** Starting with mitmproxy 9, users should use the standard Python logging module instead, for example by calling `logging.getLogger().addHandler()`. Called whenever a new log entry is created through the mitmproxy context. Be careful not to log from this event, which

Source from the content-addressed store, hash-verified

226
227@dataclass
228class AddLogHook(hooks.Hook):
229 """
230 **Deprecated:** Starting with mitmproxy 9, users should use the standard Python logging module instead, for example
231 by calling `logging.getLogger().addHandler()`.
232
233 Called whenever a new log entry is created through the mitmproxy
234 context. Be careful not to log from this event, which will cause an
235 infinite loop!
236 """
237
238 entry: LogEntry
239
240
241def log_tier(level):

Callers 1

emitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…