(self, record)
| 100 | } |
| 101 | |
| 102 | def format(self, record): |
| 103 | log_fmt = self.NON_TTY_FORMATS.get(record.levelno) |
| 104 | formatter = logging.Formatter(log_fmt) |
| 105 | formatter.datefmt = '%Y-%m-%dT%H:%M:%S%z' |
| 106 | return formatter.format(record) |
| 107 | |
| 108 | class ColorFormatter(logging.Formatter): |
| 109 | """Logging color""" |