Revert "Added a lot of logging methods"

This reverts commit dc39e5c882de86771ce7c357d7fabbc1fac6a6a5.
Default logfn value to /dev/null
Tweaked casting in Recognizer.cpp