(self, record)
| 19 | } |
| 20 | |
| 21 | def format(self, record): |
| 22 | log_fmt = self.FORMATS.get(record.levelno, self.FORMATS[logging.INFO]) |
| 23 | formatter = logging.Formatter(log_fmt) |
| 24 | return formatter.format(record) |
| 25 | |
| 26 | |
| 27 | class AgentOpsLogFileFormatter(logging.Formatter): |