Update a logger
Updates a logger for a CAS server.
1{2 "version": 1,3 "name": "App",4 "level": "info",5 "links": [6 {7 "method": "GET",8 "rel": "up",9 "href": "/casManagement/servers/cas-shared-default/loggers",10 "uri": "/casManagement/servers/cas-shared-default/loggers",11 "type": "application/vnd.sas.collection",12 "itemType": "application/vnd.sas.cas.server.logger.summary"13 },14 {15 "method": "GET",16 "rel": "self",17 "href": "/casManagement/servers/cas-shared-default/loggers/App",18 "uri": "/casManagement/servers/cas-shared-default/loggers/App",19 "type": "application/vnd.sas.cas.server.logger"20 }21 ]22}
Name | Type | Required | Description |
---|---|---|---|
loggerName | string | true | Logger to delete. |
serverName | string | true | Server name for which the logger information is being updated. |
Name | Type | Required | Description |
---|---|---|---|
sessionId | string | false | Session ID to use when connecting to update the logger. If not specified, a temporary session is used. |
The logger to update.
Detailed information about a CAS server logger.
Name | Type | Required | Description |
---|---|---|---|
name | string | true | The name of the logger. |
level | string | true | The level of the logger. Valid level values include info, warn, error, fatal, debug, and trace. |
applyToController | boolean | false | This property is used only when modifying logger settings. It is not returned when reading settings. If true, the change will apply both at the controller level and session level. If true, applyToNewSessions option is treated as true. |
applyToNewSessions | boolean | false | This property is used only when modifying logger settings. It is not returned when reading settings. If true, the change will apply only to the current session, but will apply to newly created sessions on the CAS server. If false, the change will apply only to the current session, and will not apply to future sessions. Defaults to false if unspecified. If applyToController is set to true, then the change will always apply to new sessions, and applyToNewSessions property is ignored. |
links | array [Link] | false | The navigable links relative to this media type. |
version | integer | true | Version of the schema. This representation is version 1. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | Updated information for the specified logger was returned. | Schema | |
304 | Not Modified | The logger was not modified. | ||
400 | Bad Request | An error occurred. | Schema | |
404 | Not Found | The requested session in the requested server name does not exist, or the logger requested does not exist. | ||
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource. Details are included in the response body. |