Update the logger to log timestamps

This commit is contained in:
Emily Doherty 2024-11-30 04:43:35 -08:00
parent f78616a34d
commit aa955816f9

View File

@ -10,7 +10,10 @@ class TokenBot:
def __init__(self):
load_dotenv()
print("#### WoW Token Bot Startup ####")
logging.basicConfig()
logging.basicConfig(
format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
)
log = logging.getLogger("TokenBotLogger")
log.setLevel(logging.INFO)
self.bot = Client(