src/icepay_api_base.php
public function logToFunction($className = null, $logFunction = null, $bool = true)
    {
        $this->_logToHook = $bool;

        if (class_exists($className))
            $this->_logHookClass = new $className;

        if (is_callable($logFunction))
            $this->_logHookFunc = $logFunction;

        return $this;
    }
public function logToFunction($className = null, $logFunction = null, $bool = true)
    {
        $this->_logToHook = $bool;

        if (class_exists($className))
            $this->_logHookClass = new $className;

        if (is_callable($logFunction))
            $this->_logHookFunc = $logFunction;

        return $this;
    }
public function logToFunction ( $ className = null , $ logFunction = null , $ bool = true ) { $ this -> _logToHook = $ bool ; if ( class_exists ( $ className ) ) $ this -> _logHookClass = new $ className ; if ( is_callable ( $ logFunction ) ) $ this -> _logHookFunc = $ logFunction ; return $ this ; }
Enable or disable logging to a hooked class

@since 2.1.0
@access public
@param string $className
@param string $logFunction
@param bool $bool
@return \Icepay_Basicmode
Enable or disable logging to a hooked class