freeformz/logglier — pull request #17 by sidereel (2012-04-12 19:55:37+00:00)
Title: Priority in syslog messages should be calculated correctly

Per RFC 3164 4.1.1, Page 9, Paragraph 1:

" The Priority value is calculated by first multiplying the Facility
number by 8 and then adding the numerical value of the Severity. For
example, a kernel message (Facility=0) with a Severity of Emergency
(Severity=0) would have a Priority value of 0. Also, a "local use 4"
message (Facility=20) with a Severity of Notice (Severity=5) would
have a Priority value of 165."

The priority was not being calculated correctly. The facility was simply being added to the priority. The RFC states that the facility should be multiplied by 8 before adding to the priority.

Also had trouble with testing as URLRequired was referenced in several places and the reference could not be resolved. Changed to InputURLRequired.