Bug #1713535 backport.
This commit is contained in:
parent
b4c0bea528
commit
4e6b5e9ead
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue