Public Member Functions | |
def | __init__ |
def | format |
Static Public Attributes | |
dictionary | DEFAULT_COLORS |
string | DEFAULT_DATE_FORMAT = '%y%m%d %H:%M:%S' |
string | DEFAULT_FORMAT = '%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s' |
Private Attributes | |
_colors | |
_fmt | |
_normal |
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 problems. This formatter is enabled automatically by `tornado.options.parse_command_line` (unless ``--logging=none`` is used).
def tornado.log.LogFormatter.__init__ | ( | self, | |
color = True , |
|||
fmt = DEFAULT_FORMAT , |
|||
datefmt = DEFAULT_DATE_FORMAT , |
|||
colors = DEFAULT_COLORS |
|||
) |
def tornado.log.LogFormatter.format | ( | self, | |
record | |||
) |
tornado::log.LogFormatter::_colors [private] |
tornado::log.LogFormatter::_fmt [private] |
tornado::log.LogFormatter::_normal [private] |
dictionary tornado::log.LogFormatter::DEFAULT_COLORS [static] |
string tornado::log.LogFormatter::DEFAULT_DATE_FORMAT = '%y%m%d %H:%M:%S' [static] |
string tornado::log.LogFormatter::DEFAULT_FORMAT = '%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]%(end_color)s %(message)s' [static] |