Added style argument to logging.basicConfig() and documented this change.

This commit is contained in:
Vinay Sajip 2010-10-31 14:59:16 +00:00
parent 64474542eb
commit c5b273011b
2 changed files with 19 additions and 1 deletions

View file

@ -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