diff options
Diffstat (limited to 'examples/logging.py')
-rw-r--r-- | examples/logging.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/logging.py b/examples/logging.py new file mode 100644 index 00000000..dccfd8b2 --- /dev/null +++ b/examples/logging.py @@ -0,0 +1,6 @@ +from mitmproxy import ctx + + +def start(): + ctx.log.info("This is some informative text.") + ctx.log.error("This is an error.") |