From 55cb2a85472de8698b3dabc7ddc920b930e355d9 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 16 Oct 2016 12:03:57 +1300 Subject: docs: logging and the context --- examples/logging.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/logging.py (limited to 'examples/logging.py') 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.") -- cgit v1.2.3