summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-12-13 18:49:08 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-12-13 18:49:08 (GMT)
commitfd94b173ce66ee07a7f6866d4f3b72349ccf650f (patch)
tree51d28f3e2a1420a3ee300d857bf0ac56e70a4ca2 /Doc/library/logging.rst
parent7292b884bd53c23defc3f52149baed82096b7ff0 (diff)
downloadcpython-fd94b173ce66ee07a7f6866d4f3b72349ccf650f.zip
cpython-fd94b173ce66ee07a7f6866d4f3b72349ccf650f.tar.gz
cpython-fd94b173ce66ee07a7f6866d4f3b72349ccf650f.tar.bz2
Logging documentation update.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 032984b..e47d1a0 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -3600,13 +3600,16 @@ attribute names, their meanings and the corresponding placeholder in a %-style
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 |