liblognorm icon indicating copy to clipboard operation
liblognorm copied to clipboard

add PRI parser

Open rgerhards opened this issue 10 years ago • 3 comments

Needs some thought if really needed

rgerhards avatar Apr 15 '15 09:04 rgerhards

This can be done with a custom type once we have a more generic integer parser. so do not code up a C parser.

rgerhards avatar Aug 26 '15 10:08 rgerhards

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)

davidelang avatar Aug 26 '15 21:08 davidelang

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).

rgerhards avatar Aug 27 '15 07:08 rgerhards