mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
11 lines
256 B
Python
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.")
|