diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-06-17 16:40:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 16:40:52 (GMT) |
commit | ca7b504a4d4c3a5fde1ee4607b9501c2bab6e743 (patch) | |
tree | 00ebd3f37fbd696b8f70765d624447d470496f62 /Doc/library/logging.rst | |
parent | 00f6493084c385033fe5574314223217d9a26672 (diff) | |
download | cpython-ca7b504a4d4c3a5fde1ee4607b9501c2bab6e743.zip cpython-ca7b504a4d4c3a5fde1ee4607b9501c2bab6e743.tar.gz cpython-ca7b504a4d4c3a5fde1ee4607b9501c2bab6e743.tar.bz2 |
bpo-37111: Add 'encoding' and 'errors' parameters to logging.basicCon… (GH-14008)
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r-- | Doc/library/logging.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 08555c3..3e4d7de 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -1196,6 +1196,21 @@ functions. | | carrying out the configuration as specified | | | by the other arguments. | +--------------+---------------------------------------------+ + | *encoding* | If this keyword argument is specified along | + | | with *filename*, its value is used when the | + | | FileHandler is created, and thus used when | + | | opening the output file. | + +--------------+---------------------------------------------+ + | *errors* | If this keyword argument is specified along | + | | with *filename*, its value is used when the | + | | FileHandler is created, and thus used when | + | | opening the output file. If not specified, | + | | the value 'backslashreplace' is used. Note | + | | that if ``None`` is specified, it will be | + | | passed as such to func:`open`, which means | + | | that it will be treated the same as passing | + | | 'errors'. | + +--------------+---------------------------------------------+ .. versionchanged:: 3.2 The *style* argument was added. @@ -1209,6 +1224,9 @@ functions. .. versionchanged:: 3.8 The *force* argument was added. + .. versionchanged:: 3.9 + The *encoding* and *errors* arguments were added. + .. function:: shutdown() Informs the logging system to perform an orderly shutdown by flushing and |