bpo-37111: Add 'encoding' and 'errors' parameters to logging.basicCon… (GH-14008)
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 @@
| | 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 @@
.. 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