liblognorm
liblognorm copied to clipboard
add PRI parser
Needs some thought if really needed
This can be done with a custom type once we have a more generic integer parser. so do not code up a C parser.
given the math needed for this, I'm thinking this is the type of thing that should be done in C. it's not rocket science, but it's a lot of things that are inefficient to do in rainerscript
<%foo:pri%> -> foo:{facility:5, severity:3, facilitytext:local0, severitytext:notice, pri:37} (obviously made up content)
ah, ok, I see where you are coming from. So far, I was of the thougt that "integer type, min 0, max 191" would suffice, but the idea of decoding fac/sev sounds good (and then it for sure is a C thing).