Tornado 6.0 Documentation
LogFormatter(fmt: str = '%(color)s[%(levelname)1.1s % (asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s', datefmt: str = '%y%m%d %H:%M:%S', style: str = '%', color: bool = True, colors: Dict[int 20: 2, 30: 3, 40: 1})[source] Log formatter used in Tornado. Key features of this formatter are: Color support when logging to a terminal that supports it. Timestamps on every log line. Robust against tornado.options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama [https://pypi.python.org/pypi/colorama]0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
LogFormatter(fmt: str = '%(color)s[%(levelname)1.1s % (asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s', datefmt: str = '%y%m%d %H:%M:%S', style: str = '%', color: bool = True, colors: Dict[int 30: 3, 40: 1, 50: 5})[source] Log formatter used in Tornado. Key features of this formatter are: Color support when logging to a terminal that supports it. Timestamps on every log line. Robust against tornado.options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama [https://pypi.python.org/pypi/colorama]0 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 4.5 Documentation
class tornado.log.LogFormatter(fmt='%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s', datefmt='%y%m%d %H:%M:%S', style='%', color=True, colors={40: 1, 10: 4, 20: 2, 30: 3}) Log formatter used in Tornado. Key features of this formatter are: Color support when logging to a terminal that supports it. Timestamps on every log line. Robust against str/bytes encoding tornado.options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama [https://pypi.python.org/pypi/colorama]0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 6.1 Documentation
LogFormatter(fmt: str = ’%(color)s[%(levelname)1.1s %(asctime)s %(mod- ule)s:%(lineno)d]%(end_color)s %(message)s’, datefmt: str = ’%y%m%d %H:%M:%S’, style: str = ’%’, color: bool = True, colors: Dict[int 2, 30: 3, 40: 1, 50: 5}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against tornado. options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
class tornado.log.LogFormatter(fmt=’%(color)s[%(levelname)1.1s %(asctime)s %(mod- ule)s:%(lineno)d]%(end_color)s %(message)s’, datefmt=’%y%m%d %H:%M:%S’, style=’%’, color=True, colors={40: 1, 10: 4, 20: 2 2, 30: 3}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against str/bytes tornado. options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 5.1 Documentation
class tornado.log.LogFormatter(fmt=’%(color)s[%(levelname)1.1s %(asctime)s %(mod- ule)s:%(lineno)d]%(end_color)s %(message)s’, datefmt=’%y%m%d %H:%M:%S’, style=’%’, color=True, colors={10: 4, 20: 2, 30: 3 3, 40: 1}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against str/bytes tornado. options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
LogFormatter(fmt: str = '%(color)s[%(levelname)1.1s %(asctime)s %(mod- ule)s:%(lineno)d]%(end_color)s %(message)s', datefmt: str = '%y%m%d %H:%M:%S', style: str = '%', color: bool = True, colors: Dict[int 4, 20: 2, 30: 3, 40: 1}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against tornado. options.parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
log.LogFormatter(fmt: str = '%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s', datefmt: str = '%y%m%d %H:%M:%S', style: str = '%', color: bool = True, colors: Dict[int 2, 30: 3, 40: 1, 50: 5}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against tornado.options. parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
log.LogFormatter(fmt: str = '%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s', datefmt: str = '%y%m%d %H:%M:%S', style: str = '%', color: bool = True, colors: Dict[int 2, 30: 3, 40: 1, 50: 5}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against --logging=none is used). 6.7. Utilities 147 Tornado Documentation, Release 6.2 Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
log.LogFormatter(fmt: str = '%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s', datefmt: str = '%y%m%d %H:%M:%S', style: str = '%', color: bool = True, colors: Dict[int 2, 30: 3, 40: 1, 50: 5}) Log formatter used in Tornado. Key features of this formatter are: • Color support when logging to a terminal that supports it. • Timestamps on every log line. • Robust against tornado.options. parse_config_file (unless --logging=none is used). Color support on Windows versions that do not support ANSI color codes is enabled by use of the colorama library. Applications that wish0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













