aboutsummaryrefslogtreecommitdiffstats
path: root/examples/logging.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-16 20:50:09 +1300
committerGitHub <noreply@github.com>2016-10-16 20:50:09 +1300
commite4a32d6844963c09a8d4488f46277e2dcbeda3ab (patch)
treeb1553be2db96b8717554db9c8449bada4c8648f7 /examples/logging.py
parent26af9b29fc3fed60a003d097b3470e85115b2161 (diff)
parent00603021d9d486e3e16511eee273d26f59a3ab10 (diff)
downloadmitmproxy-e4a32d6844963c09a8d4488f46277e2dcbeda3ab.tar.gz
mitmproxy-e4a32d6844963c09a8d4488f46277e2dcbeda3ab.tar.bz2
mitmproxy-e4a32d6844963c09a8d4488f46277e2dcbeda3ab.zip
Merge pull request #1602 from cortesi/scriptdocs
docs: stub out new script documentation
Diffstat (limited to 'examples/logging.py')
-rw-r--r--examples/logging.py6
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.")