[Python-checkins] r87215 - python/branches/py3k/Doc/library/logging.rst

vinay.sajip python-checkins at python.org
Mon Dec 13 19:49:08 CET 2010


Author: vinay.sajip
Date: Mon Dec 13 19:49:08 2010
New Revision: 87215

Log:
Logging documentation update.

Modified:
   python/branches/py3k/Doc/library/logging.rst

Modified: python/branches/py3k/Doc/library/logging.rst
==============================================================================
--- python/branches/py3k/Doc/library/logging.rst	(original)
+++ python/branches/py3k/Doc/library/logging.rst	Mon Dec 13 19:49:08 2010
@@ -3600,13 +3600,16 @@
 format string.
 
 If you are using {}-formatting (:func:`str.format`), you can use
-``{{attrname}}`` as the placeholder in the format string. If you are using
+``{attrname}`` as the placeholder in the format string. If you are using
 $-formatting (:class:`string.Template`), use the form ``${attrname}``. In
 both cases, of course, replace ``attrname`` with the actual attribute name
 you want to use.
 
 In the case of {}-formatting, you can specify formatting flags by placing them
-after the attribute name, separated from it with a colon.
+after the attribute name, separated from it with a colon. For example: a
+placeholder of ``{msecs:03d}`` would format a millisecond value of ``4`` as
+``004``. Refer to the :meth:`str.format` documentation for full details on
+the options available to you.
 
 +----------------+-------------------------+-----------------------------------------------+
 | Attribute name | Format                  | Description                                   |


More information about the Python-checkins mailing list