Add logging to log.txt so that the bot can be monitored.