[3.10] bpo-42378: fixed log truncation on logging shutdown (GH-27310) (GH-30468)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst
index a664efd..a5b181e 100644
--- a/Doc/library/logging.handlers.rst
+++ b/Doc/library/logging.handlers.rst
@@ -117,6 +117,9 @@
 
       Outputs the record to the file.
 
+      Note that if the file was closed due to logging shutdown at exit and the file
+      mode is 'w', the record will not be emitted (see :issue:`42378`).
+
 
 .. _null-handler: