summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-07-06 15:08:55 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-07-06 15:08:55 (GMT)
commitc15dfd63b33ec840c902edabf23513bb0ef3a13d (patch)
treec66132ce617e7cddee2cba2451c037a70d3125b0
parent6f493b7bac2c36ad39eab858fec958288ff5ee1d (diff)
downloadcpython-c15dfd63b33ec840c902edabf23513bb0ef3a13d.zip
cpython-c15dfd63b33ec840c902edabf23513bb0ef3a13d.tar.gz
cpython-c15dfd63b33ec840c902edabf23513bb0ef3a13d.tar.bz2
Minor improvements to logging documentation.
-rw-r--r--Doc/library/logging.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index e59c90c..6941ce7 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -246,7 +246,7 @@ With the logger object configured, the following methods create log messages:
methods listed above, but this is how to log at custom log levels.
:func:`getLogger` returns a reference to a logger instance with the specified
-if it is provided, or ``root`` if not. The names are period-separated
+name if it is provided, or ``root`` if not. The names are period-separated
hierarchical structures. Multiple calls to :func:`getLogger` with the same name
will return a reference to the same logger object. Loggers that are further
down in the hierarchical list are children of loggers higher up in the list.
@@ -1572,6 +1572,11 @@ printed on the console; on the server side, you should see something like::
69 myapp.area2 WARNING Jail zesty vixen who grabbed pay from quack.
69 myapp.area2 ERROR The five boxing wizards jump quickly.
+Note that there are some security issues with pickle in some scenarios. If
+these affect you, you can use an alternative serialization scheme by overriding
+the :meth:`makePickle` method and implementing your alternative there, as
+well as adapting the above script to use your alternative serialization.
+
Using arbitrary objects as messages
-----------------------------------