The first two example programs in this directory are buffer-parser and
reader-parser corresponding to the two API styles. They demonstrate
parsing a log file and printing out the timestamp and log-level of each message,
as well as any multiline log messages.
The third example is intersect-test which demonstrates the result of taking
the intersection between a schema DFA and a search query DFA.
First, ensure you've built and installed the library by following these steps. Then run the following command:
task examples:build-debugThe example programs can be run as follows:
./build/examples/debug/buffer-parser ./examples/schema.txt log.txt
./build/examples/debug/reader-parser ./examples/schema.txt log.txt
./build/examples/debug/intersect-testwhere:
./examples/schema.txtis a schema file containing rules for variables that should be parsed.log.txtis a log file.