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

Class LogEntry

mitmproxy/log.py:103–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103class LogEntry:
104 def __init__(self, msg, level):
105 # it's important that we serialize to string here already so that we don't pick up changes
106 # happening after this log statement.
107 self.msg = str(msg)
108 self.level = level
109
110 def __eq__(self, other):
111 if isinstance(other, LogEntry):
112 return self.__dict__ == other.__dict__
113 return False
114
115 def __repr__(self):
116 return f"LogEntry({self.msg}, {self.level})"
117
118
119class Log:

Callers 2

emitMethod · 0.90
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…