patch to fix logEvent API
Merge pull request #769 from aogilvie/fix/logEvent-param

patch to fix logEvent API