NDOJ/judge/logging.py
2024-05-08 10:15:55 -05:00

12 lines
249 B
Python

import logging
error_log = logging.getLogger("judge.errors")
debug_log = logging.getLogger("judge.debug")
def log_exception(msg):
error_log.exception(msg)
def log_debug(category, data):
debug_log.info(f"{category}: {data}")