import logging logging.basicConfig( filename="logs/bot.log", level=logging.INFO, format= "%(asctime)s | %(message)s" ) logger = logging.getLogger()