From 7242abcfb22c5b7321dc658766e8b6f5486ff1c3 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 24 May 2011 16:34:41 +0200 Subject: [PATCH] Extend the logging from the dynamically set logger class. This fixes #234 --- flask/logging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flask/logging.py b/flask/logging.py index 29caadce..8379ab66 100644 --- a/flask/logging.py +++ b/flask/logging.py @@ -11,7 +11,7 @@ from __future__ import absolute_import -from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG +from logging import getLogger, StreamHandler, Formatter, getLoggerClass, DEBUG def create_logger(app): @@ -21,6 +21,7 @@ def create_logger(app): function also removes all attached handlers in case there was a logger with the log name before. """ + Logger = getLoggerClass() class DebugLogger(Logger): def getEffectiveLevel(x):