Analytics

created an analytics plugin that will send data to papertrail through syslog
To add flexibility to the code and to make it easier to test, I would recommend adding a callback to AnalyticsRestEndpoint which will be used to process the received events. This callback can default to dumping to cout but it also gives the user the ability that change the format used to output or forward the output elsewhere, etc.

Might be a bit overkill for the use cases you have in mind.