diff options
Diffstat (limited to 'examples/context_logging.py')
-rw-r--r-- | examples/context_logging.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/context_logging.py b/examples/context_logging.py new file mode 100644 index 00000000..dccfd8b2 --- /dev/null +++ b/examples/context_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.") |