summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-10-31 14:59:16 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-10-31 14:59:16 (GMT)
commitc5b273011b86d6ec534c935d4520c5db5a35bde1 (patch)
tree558d7305d73c76a8646ff8b00911765f9db5682e /Doc/library/logging.rst
parent64474542ebec7095d3f66828de4d917699388e9e (diff)
downloadcpython-c5b273011b86d6ec534c935d4520c5db5a35bde1.zip
cpython-c5b273011b86d6ec534c935d4520c5db5a35bde1.tar.gz
cpython-c5b273011b86d6ec534c935d4520c5db5a35bde1.tar.bz2
Added style argument to logging.basicConfig() and documented this change.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index ed0294b..98c6bbf 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -919,6 +919,12 @@ functions.
+--------------+---------------------------------------------+
| ``datefmt`` | Use the specified date/time format. |
+--------------+---------------------------------------------+
+ | ``style`` | If ``format`` is specified, use this style |
+ | | for the format string. One of '%', '{' or |
+ | | '$' for %-formatting, :meth:`str.format` or |
+ | | :class:`string.Template` respectively, and |
+ | | defaulting to '%' if not specified. |
+ +--------------+---------------------------------------------+
| ``level`` | Set the root logger level to the specified |
| | level. |
+--------------+---------------------------------------------+
@@ -928,6 +934,10 @@ functions.
| | present, 'stream' is ignored. |
+--------------+---------------------------------------------+
+ .. versionchanged:: 3.2
+ The ``style`` argument was added.
+
+
.. function:: shutdown()
Informs the logging system to perform an orderly shutdown by flushing and