NDOJ/judge/logging.py

13 lines
249 B
Python
Raw Normal View History

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