()
| 257 | class GSLogger(object): |
| 258 | @staticmethod |
| 259 | def init(): |
| 260 | logging.basicConfig(level=logging.CRITICAL) |
| 261 | # Default logger configuration |
| 262 | stdout_handler = logging.StreamHandler(sys.stdout) |
| 263 | formatter = ConditionalFormatter( |
| 264 | "%(asctime)s [%(levelname)s][%(module)s:%(lineno)d]: %(message)s" |
| 265 | ) |
| 266 | stdout_handler.setFormatter(formatter) |
| 267 | logger.addHandler(stdout_handler) |
| 268 | logger.propagate = False |
| 269 | GSLogger.update() |
| 270 | |
| 271 | # nice traceback |
| 272 | try: |
| 273 | import rich.pretty |
| 274 | import rich.traceback |
| 275 | |
| 276 | rich.traceback.install() |
| 277 | rich.pretty.install() |
| 278 | except ImportError: |
| 279 | pass |
| 280 | |
| 281 | @staticmethod |
| 282 | def update(): |
nothing calls this directly
no test coverage detected