Modified log reading to include datetime