add date to logfile