Make `tornado.log.LogFormatter` compatible with `logging.config.dictConfig`.
This commit is contained in:
parent
d456f1b3db
commit
c2969acc4f
|
@ -89,8 +89,8 @@ class LogFormatter(logging.Formatter):
|
||||||
logging.ERROR: 1, # Red
|
logging.ERROR: 1, # Red
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, color=True, fmt=DEFAULT_FORMAT,
|
def __init__(self, fmt=DEFAULT_FORMAT, datefmt=DEFAULT_DATE_FORMAT,
|
||||||
datefmt=DEFAULT_DATE_FORMAT, colors=DEFAULT_COLORS):
|
style='%', color=True, colors=DEFAULT_COLORS):
|
||||||
r"""
|
r"""
|
||||||
:arg bool color: Enables color support.
|
:arg bool color: Enables color support.
|
||||||
:arg string fmt: Log message format.
|
:arg string fmt: Log message format.
|
||||||
|
|
Loading…
Reference in New Issue