(self)
| 124 | return colorama.Fore.YELLOW |
| 125 | |
| 126 | def get_string_to_print(self): |
| 127 | text_to_print = self._text |
| 128 | if len(self._text) > 15: |
| 129 | text_to_print = self._text[:10] + "..." |
| 130 | return ( |
| 131 | self._color |
| 132 | + text_to_print |
| 133 | + colorama.Style.RESET_ALL |
| 134 | + ": " |
| 135 | + str(self._occurrence_count) |
| 136 | ) |
| 137 | |
| 138 | def _add_color_to_string(self, log_event: str, start, end): |
| 139 | string_to_replace = log_event[start:end] |
no outgoing calls