docs: logging and the context

This commit is contained in:
Aldo Cortesi
2016-10-16 12:03:57 +13:00
parent a6c7a1ff91
commit 55cb2a8547
6 changed files with 68 additions and 27 deletions

6
examples/logging.py Normal file
View File

@@ -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.")