forked from orbit-oss/flask
Extend the logging from the dynamically set logger class. This fixes #234
This commit is contained in:
parent
9c00f8b787
commit
7242abcfb2
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
from __future__ import absolute_import
|
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):
|
def create_logger(app):
|
||||||
|
|
@ -21,6 +21,7 @@ def create_logger(app):
|
||||||
function also removes all attached handlers in case there was a
|
function also removes all attached handlers in case there was a
|
||||||
logger with the log name before.
|
logger with the log name before.
|
||||||
"""
|
"""
|
||||||
|
Logger = getLoggerClass()
|
||||||
|
|
||||||
class DebugLogger(Logger):
|
class DebugLogger(Logger):
|
||||||
def getEffectiveLevel(x):
|
def getEffectiveLevel(x):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue