public function setLogLocation($location = false) {
        if($location === false) {
            $location = dirname(__FILE__).DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR;
        }
        $this->logLocation = $location;
        if (!file_exists($location)) {
            mkdir($location, 0777, true);
        }
        return $this;
    }
public function setLogLocation($location = false) {
        if($location === false) {
            $location = dirname(__FILE__).DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR;
        }
        $this->logLocation = $location;
        if (!file_exists($location)) {
            mkdir($location, 0777, true);
        }
        return $this;
    }
public function setLogLocation ( $ location = false ) { if ( $ location === false ) { $ location = dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'logs' . DIRECTORY_SEPARATOR ; } $ this -> logLocation = $ location ; if ( ! file_exists ( $ location ) ) { mkdir ( $ location , 0777 , true ) ; } return $ this ; }
Sets the location of the log files
@param string $location This should be where you wish the logs to be stored
@return $this
Sets the location of the log files