(self, record)
| 32 | RESET = Style.RESET_ALL if COLORAMA_AVAILABLE else '' |
| 33 | |
| 34 | def format(self, record): |
| 35 | color = self.COLOR_MAP.get(record.levelno, '') |
| 36 | message = super().format(record) |
| 37 | if color: |
| 38 | message = f"{color}{message}{self.RESET}" |
| 39 | return message |
| 40 | |
| 41 | def setup_logger(logger_name, level=logging.INFO): |
| 42 | ''' |
no outgoing calls
no test coverage detected