Add a function SetLogFuncCall to enable