Added log functionality to Weka plugin