mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Added style argument to logging.basicConfig() and documented this change.
This commit is contained in:
parent
64474542eb
commit
c5b273011b
2 changed files with 19 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue