changed logging to one logfile per day