aboutsummaryrefslogtreecommitdiffstats
path: root/examples/context_logging.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-10-29 11:31:38 -0700
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-10-29 11:31:38 -0700
commitd56bbb95e252b1e3046b4f8c946b6a1b2e3585b8 (patch)
treeb774aa81cfb2fc66f95d15cf8c2ce38adc968484 /examples/context_logging.py
parenta3131ac34330537b205ba7332f752c1b1ea93278 (diff)
downloadmitmproxy-d56bbb95e252b1e3046b4f8c946b6a1b2e3585b8.tar.gz
mitmproxy-d56bbb95e252b1e3046b4f8c946b6a1b2e3585b8.tar.bz2
mitmproxy-d56bbb95e252b1e3046b4f8c946b6a1b2e3585b8.zip
rename logging .py to prevent import errors
Diffstat (limited to 'examples/context_logging.py')
-rw-r--r--examples/context_logging.py6
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.")