Added logging

This commit is contained in:
Jeremy Zhang 2017-05-14 22:09:38 +00:00
parent 71ec14a609
commit 8a63570b70

View File

@ -4,6 +4,10 @@ import discord
import aiohttp import aiohttp
import asyncio import asyncio
import sys import sys
import logging
logging.basicConfig(filename='titanbot.log',level=logging.DEBUG,format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
logging.getLogger('TitanBot')
logging.getLogger('sqlalchemy')
class Titan(discord.Client): class Titan(discord.Client):
def __init__(self): def __init__(self):