1
0

add logging lib

This commit is contained in:
andrea
2025-07-26 19:04:17 +02:00
parent 11e4f9b2dd
commit a948db5af3
2 changed files with 45 additions and 18 deletions

19
utils/logs.py Normal file
View File

@@ -0,0 +1,19 @@
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)