original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Sets the location of the log files
  @param string $location This should be where you wish the logs to be stored
  @return $this
docstring_tokens: Sets the location of the log files