log date
write to log file