Added logging

I added support for proper logging, at the moment everything the bot either prints or sends as a message is being logged.