Commit deaebd0c authored by Raymond Hettinger's avatar Raymond Hettinger

Add an import to the logging example

parent f184bdf8
......@@ -208,6 +208,7 @@ dictionary::
If that dictionary is stored in a file called :file:`conf.json`, it can be
loaded and called with code like this::
import json
import logging.config
logging.config.dictConfig(json.load(open('conf.json', 'rb')))
logging.info("Transaction completed normally")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment