From 8a63570b70b479fa9eee568b44448cd6dc92713a Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sun, 14 May 2017 22:09:38 +0000 Subject: [PATCH] Added logging --- discordbot/titanembeds/bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index 598e65b..ee6ce53 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -4,6 +4,10 @@ import discord import aiohttp import asyncio 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): def __init__(self):