Changed logging handler to a timedrotatingloghandler

In theory this should rotate once per day.