<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def editLogSettings(self, logLocation, logLevel="WARNING", maxLogFileAge=90):
 """ edits the log settings for the portal site Inputs: logLocation - file path to where you want the log files saved on disk logLevel - this is the level of detail saved in the log files Levels are: OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, and DEBUG maxLogFileAge - the numbers of days to keep a single log file """

        url = self._url + "/settings/edit"
        params = {
            "f" : "json",
            "logDir" : logLocation,
            "logLevel" : logLevel,
            "maxLogFileAge" : maxLogFileAge
        }
        return self._post(url=url,
                             param_dict=params,
                             securityHandler=self._securityHandler,
                             proxy_url=self._proxy_url,
                             proxy_port=self._proxy_port)