add datetime to logfile