aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/log_events.py
blob: b9aa2c1f00d5614263af5ce5c238e78a62531d73 (plain)
1
2
3
4
5
6
7
8
9
10
"""
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.")