Adds the timestamp for the log event.