**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
| 226 | |
| 227 | @dataclass |
| 228 | class 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 | |
| 241 | def log_tier(level): |
no outgoing calls
no test coverage detected
searching dependent graphs…