Update a logger

put/servers/{serverName}/loggers/{loggerName}
Internal-Use Only

Updates a logger for a CAS server.

Request Samples

1

Response Samples

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}

Path Parameters

NameTypeRequiredDescription
loggerName
string
true

Logger to delete.

serverName
string
true

Server name for which the logger information is being updated.

Query Parameters

NameTypeRequiredDescription
sessionId
string
false

Session ID to use when connecting to update the logger. If not specified, a temporary session is used.

Request Body

The logger to update.

Detailed information about a CAS server logger.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
200OKUpdated information for the specified logger was returned.Schema
304Not ModifiedThe logger was not modified.
400Bad RequestAn error occurred.Schema
404Not FoundThe requested session in the requested server name does not exist, or the logger requested does not exist.
409ConflictThe request could not be completed due to a conflict with the current state of the resource. Details are included in the response body.