1
0
Files
battle_royale_sim/utils/logs.py
2025-07-26 19:04:17 +02:00

20 lines
373 B
Python

import logging as _logging
logger = _logging.getLogger(__name__)
_logging.basicConfig(filename= 'battle_royale.log', encoding= 'utf-8', level= _logging.DEBUG)
def log_debug(txt):
logger.debug(txt)
def log_info(txt):
logger.info(txt)
def log_warning(txt):
logger.warning(txt)
def log_error(txt):
logger.error(txt)
def log_critical(txt):
logger.critical(txt)