added: calculation and logging of day summary in logging file