Make `tornado.log.LogFormatter` compatible with `logging.config.dictConfig`.

This commit is contained in:
JZQT 2017-02-27 10:46:28 +08:00
parent d456f1b3db
commit c2969acc4f
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ class LogFormatter(logging.Formatter):
logging.ERROR: 1, # Red
}
def __init__(self, color=True, fmt=DEFAULT_FORMAT,
datefmt=DEFAULT_DATE_FORMAT, colors=DEFAULT_COLORS):
def __init__(self, fmt=DEFAULT_FORMAT, datefmt=DEFAULT_DATE_FORMAT,
style='%', color=True, colors=DEFAULT_COLORS):
r"""
:arg bool color: Enables color support.
:arg string fmt: Log message format.