mitmproxy/examples/context_logging.py

7 lines
131 B
Python

from mitmproxy import ctx
def start():
ctx.log.info("This is some informative text.")
ctx.log.error("This is an error.")