Open preyniers opened 5 years ago
Just wanted to say this was immensely useful to me in constructing some complex user-defined types and alternative parsers I could not figure out how to define otherwise. The documentation for both is rather uncreative with its examples, so thank you for publishing this!
Please include this use-case, or one like it, as part of the
liblognorm
examples documentation. If there is a more eloquent manner to express this rule base, please let me know.Overview
This example details a use-case for liblognorm’s alternative syntax. The use-case is applied to inconsistent preambles for syslog messages. Through the use of alternative syntax, users can create API-style message syntax type[s] which allow for a consistent and succinct parser interface.
How-To
Versioning
Directory Structure
Input File
Formats
Raw Message ($rawmsg)
Message ($msg):
Data
Type File
Parser File
Output