<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def log_rule_info(self):
 """Collects rule information and send to logit function to log to syslog"""


        for c in sorted(self.broker.get_by_type(rule), key=dr.get_name):
            v = self.broker[c]
            _type = v.get("type")
            if _type:
                if _type != "skip":
                    msg = "Running {0} ".format(dr.get_name(c))
                    self.logit(msg, self.pid, self.user, "insights-run", logging.INFO)
                else:
                    msg = "Rule skipped {0} ".format(dr.get_name(c))
                    self.logit(msg, self.pid, self.user, "insights-run", logging.WARNING)