Adds log and rule for activity