This example uses the Logfile API to open and read a PolySync logfile
plog file for replay.
It depends on a file found in the
/tmp/ directory, but can easily be updated to point to any existing
plog file (the intention of the example).
Steps to run:
- Update the file
src/logfile_reader.con line 74 to point to an existing
plogfile, (point to new rnr_logs location)
To install on Ubuntu:
sudo apt-get install libglib2.0-dev
Building and running the node
$ cd logfile_reader $ make $ ./bin/polysync-logfile-reader-c
For more API examples, visit the "Tutorials" and "Development" sections in the PolySync Help Center here.