mitmproxy/examples/simple/log_events.py
2018-02-20 17:15:35 +01:00

11 lines
256 B
Python

"""
It is recommended to use `ctx.log` for logging within a script.
print() statements are equivalent to ctx.log.warn().
"""
from mitmproxy import ctx
def load(l):
ctx.log.info("This is some informative text.")
ctx.log.error("This is an error.")