]> granicus.if.org Git - python/commitdiff
whatsnew: logging.fileConfig accepts ConfigParser instances. (#16110)
authorR David Murray <rdmurray@bitdance.com>
Mon, 10 Mar 2014 15:51:19 +0000 (11:51 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 10 Mar 2014 15:51:19 +0000 (11:51 -0400)
And missing NEWS entry.

Doc/whatsnew/3.4.rst
Misc/NEWS

index ed72fedaa28b5b44e71c1a8718bd50da339ff375..834c9145556ad74a9acacc013188efd685e648ab 100644 (file)
@@ -1006,6 +1006,14 @@ happen.  (Contributed by Ronald Oussoren in :issue:`9556`.)
 setting *port* to ``None``).  (Contributed by Vinay Sajip in commit
 ce46195b56a9.)
 
+:func:`~logging.config.fileConfig` now accepts a
+:class:`configparser.RawConfigParser` subclass instance for the *fname*
+parameter.  This facilitates using a configuration file when logging
+configuration is just a part of the overall application configuration, or where
+the application modifies the configuration before passing it to
+:func:`~logging.config.fileConfig`.  (Contributed by Vinay Sajip in
+:issue:`16110`.)
+
 
 .. _whatsnew-marshal-3:
 
index 214e8fc34db7a2d93d0f2f7c0bf72723b357ec94..c729493cfbd61ee40570df16a28b4e974f4bdb92 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3617,6 +3617,9 @@ Library
 
 - Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror.
 
+- Issue #16110: logging.fileConfig now accepts a pre-initialised ConfigParser
+  instance.
+
 - Issue #1492704: shutil.copyfile() raises a distinct SameFileError now if
   source and destination are the same file. Patch by Atsuo Ishimoto.