fixed datewise creation of log