adding date and time to logging