FRAMES | NO FRAMES | Description | Parameters | Request | Response |
URL: |
http://server:port/arcgis/admin/logs/settings/edit
|
---|---|
HTTP Method: | POST |
Parent Resource: | Log Settings |
Required Privileges: | Administrator |
The log settings are for the entire site. POST updates the settings.
Parameter | Default | Description |
---|---|---|
logLevel | WARNING | Can be one of [OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, DEBUG]. Default WARNING. |
logDir |
Windows: C:\\arcgisserver\\logs
Linux: [server root]/usr/logs/ |
File path to the root of the log directories. |
maxLogFileAge | 90 | Represents the number of days that server should save a log file. |
maxErrorReportsCount | 10 | The maximum number of error report files per machine. |
f | html | The response format. [html|json|pjson] |
{"settings": { "logDir": "/data/ags/arcgis/server/usr/logs/", "logLevel": "INFO", "maxLogFileAge": 90, "maxErrorReportsCount": 10 }}
{"status": "success", "settings": { "logDir": "/data/ags/arcgis/server/usr/logs/", "logLevel": "INFO", "maxLogFileAge": 90, "maxErrorReportsCount": 10 }}