inliniac/suricata — pull request #1199 by decanio (2014-11-04 01:19:24+00:00)
Title: Dev stats log api v0.4 json stats log v0.1

Because you created a couple of new files and moved quite a bit of code into them, trying to git merge the code between your branch and mine created quite the mess. So instead of trying to automatically merge the changes I did it manually by coping code around.

Here's the result.

This isnt' very well tested yet, but I wanted to get it back to you so that you could look it over. It does seem to be producing stats in both stats.log and within the json stream.

Also I put an #if 0 around the OutputStatsLoggersRegistered() call because that was preventing stats logging altogether in the source I grabbed from you. This should be put back once fixed.