src/xPDO/xPDO.php
public function setLogLevel($level= xPDO::LOG_LEVEL_FATAL) {
        $oldLevel = $this->logLevel;
        $this->logLevel= intval($level);
        return $oldLevel;
    }
public function setLogLevel($level= xPDO::LOG_LEVEL_FATAL) {
        $oldLevel = $this->logLevel;
        $this->logLevel= intval($level);
        return $oldLevel;
    }
public function setLogLevel ( $ level = xPDO :: LOG_LEVEL_FATAL ) { $ oldLevel = $ this -> logLevel ; $ this -> logLevel = intval ( $ level ) ; return $ oldLevel ; }
Sets the logging level state for the xPDO instance.

@param integer $level The logging level to switch to.
@return integer The previous log level.
Sets the logging level state for the xPDO instance .