Bug #1713535: typo in logging example.

This commit is contained in:
Georg Brandl 2007-05-05 18:55:37 +00:00
parent 229cee2d3d
commit cc40ff831c
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ logged messages. For example:
\begin{verbatim} \begin{verbatim}
FORMAT = "%(asctime)-15s %(clientip)s %(user)-8s %(message)s" FORMAT = "%(asctime)-15s %(clientip)s %(user)-8s %(message)s"
logging.basicConfig(format=FORMAT) logging.basicConfig(format=FORMAT)
dict = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' } d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
logging.warning("Protocol problem: %s", "connection reset", extra=d) logging.warning("Protocol problem: %s", "connection reset", extra=d)
\end{verbatim} \end{verbatim}