NDOJ/judge/logging.py

13 lines
249 B
Python
Raw Normal View History

2023-10-27 18:02:02 -05:00
import logging
error_log = logging.getLogger("judge.errors")
2024-05-08 10:15:55 -05:00
debug_log = logging.getLogger("judge.debug")
2023-10-27 18:02:02 -05:00
def log_exception(msg):
error_log.exception(msg)
2024-05-08 10:15:55 -05:00
def log_debug(category, data):
debug_log.info(f"{category}: {data}")