(self, msg: str)
| 127 | handler.process(print_msg, LEVEL.ERROR) |
| 128 | |
| 129 | def debug(self, msg: str): |
| 130 | header = self.wrap_header('DEBUG') |
| 131 | print_msg = G_BEGIN + header + COLOR_END + msg |
| 132 | |
| 133 | for handler in self._handlers.values(): |
| 134 | if handler._file_name is not None: |
| 135 | handler.process(msg, LEVEL.DEBUG) |
| 136 | else: |
| 137 | handler.process(print_msg, LEVEL.DEBUG) |
| 138 | |
| 139 | def register_handler(self, file_name: str, level: Union[str, LEVEL]=LEVEL.INFO): |
| 140 | if file_name not in self._handlers: |
no test coverage detected