Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(91832)

Unified Diff: Lib/logging/config.py

Issue 16110: Provide logging.config.configParserConfig
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/logging/config.py Tue Oct 02 10:19:48 2012 -0400
+++ b/Lib/logging/config.py Tue Oct 02 17:25:08 2012 +0200
@@ -67,6 +67,13 @@
else:
cp.read(fname)
+ configParserConfig(cp, disable_existing_loggers=disable_existing_loggers):
+
+def configParserConfig(cparser, disable_existing_loggers=True):
+ """
+ Configure logging as provided in a configparser.ConfigParser instance.
+ """
+
formatters = _create_formatters(cp)
# critical section
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+