12 lines
249 B
Python
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}")
|