src/icepay_api_base.php
public function setLoggingLevel($level)
    {
        switch ($level) {
            case Icepay_Api_Logger::LEVEL_ALL:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR);
                break;
            case Icepay_Api_Logger::LEVEL_ERRORS:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR);
                break;
            case Icepay_Api_Logger::LEVEL_TRANSACTION:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR, false);
                break;
            case Icepay_Api_Logger::LEVEL_ERRORS_AND_TRANSACTION:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR);
                break;
        }

        return $this;
    }
public function setLoggingLevel($level)
    {
        switch ($level) {
            case Icepay_Api_Logger::LEVEL_ALL:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR);
                break;
            case Icepay_Api_Logger::LEVEL_ERRORS:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR);
                break;
            case Icepay_Api_Logger::LEVEL_TRANSACTION:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR, false);
                break;
            case Icepay_Api_Logger::LEVEL_ERRORS_AND_TRANSACTION:
                $this->_setLoggingFlag(Icepay_Api_Logger::NOTICE, false);
                $this->_setLoggingFlag(Icepay_Api_Logger::TRANSACTION);
                $this->_setLoggingFlag(Icepay_Api_Logger::ERROR);
                break;
        }

        return $this;
    }
public function setLoggingLevel ( $ level ) { switch ( $ level ) { case Icepay_Api_Logger :: LEVEL_ALL : $ this -> _setLoggingFlag ( Icepay_Api_Logger :: NOTICE ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: TRANSACTION ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: ERROR ) ; break ; case Icepay_Api_Logger :: LEVEL_ERRORS : $ this -> _setLoggingFlag ( Icepay_Api_Logger :: NOTICE , false ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: TRANSACTION , false ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: ERROR ) ; break ; case Icepay_Api_Logger :: LEVEL_TRANSACTION : $ this -> _setLoggingFlag ( Icepay_Api_Logger :: NOTICE , false ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: TRANSACTION ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: ERROR , false ) ; break ; case Icepay_Api_Logger :: LEVEL_ERRORS_AND_TRANSACTION : $ this -> _setLoggingFlag ( Icepay_Api_Logger :: NOTICE , false ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: TRANSACTION ) ; $ this -> _setLoggingFlag ( Icepay_Api_Logger :: ERROR ) ; break ; } return $ this ; }
Set the logging level

@since 2.1.0
@access public
@param int $level
Set the logging level