Commit 80eed3e6 authored by Vinay Sajip's avatar Vinay Sajip

Minor improvements to logging documentation.

parent dab08963
...@@ -248,7 +248,7 @@ With the logger object configured, the following methods create log messages: ...@@ -248,7 +248,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. 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 :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 hierarchical structures. Multiple calls to :func:`getLogger` with the same name
will return a reference to the same logger object. Loggers that are further 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. down in the hierarchical list are children of loggers higher up in the list.
...@@ -1590,6 +1590,11 @@ printed on the console; on the server side, you should see something like:: ...@@ -1590,6 +1590,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 WARNING Jail zesty vixen who grabbed pay from quack.
69 myapp.area2 ERROR The five boxing wizards jump quickly. 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 Using arbitrary objects as messages
----------------------------------- -----------------------------------
......
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