mitmproxy/examples/addons/log-events.py

9 lines
216 B
Python
Raw Permalink Normal View History

"""Post messages to mitmproxy's event log."""
from mitmproxy import ctx
def load(l):
ctx.log.info("This is some informative text.")
ctx.log.warn("This is a warning.")
ctx.log.error("This is an error.")