add code to date today's log and delete if empty