Add a logger
Adds a logger to a CAS server and returns the logger information.
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 |
---|---|---|---|
serverName | string | true | Server name in which the logger is to be created. |
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 | ||
---|---|---|---|---|
201 | Created | Information about the created logger was returned. | Headers | Schema |
400 | Bad Request | An error occurred. | Schema | |
404 | Not Found | The requested CAS server 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. |