Create or update a presence log by its user ID.