Changed project structure by adding cogs for birthday feature related actions

This commit is contained in:
2023-11-08 21:26:58 +01:00
parent 51baffb390
commit de90b874fc
4 changed files with 132 additions and 0 deletions

8
modules/setup/logger.py Normal file
View File

@@ -0,0 +1,8 @@
import logging
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(asctime)s: %(name)s: %(message)s')
LOGGER = logging.getLogger('botmafieux')
LOGGER.setLevel(logging.DEBUG)
handler = logging.FileHandler(filename='botmafieux.log', encoding='utf-8', mode='w')
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
LOGGER.addHandler(handler)