ft_transcendence/srcs/.venv/lib/python3.11/site-packages/restapi/log.py
2023-11-23 16:43:30 +01:00

15 lines
266 B
Python

import logging
logger = logging.getLogger('api')
def log(text, *args):
log_text = text if not args else text % tuple(args)
logger.info(log_text)
def error(text, *args):
log_text = text if not args else text % tuple(args)
logger.error(log_text)