Add a logger

post/servers/{serverName}/loggers
Internal-Use Only

Adds a logger to a CAS server and returns the logger information.

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
serverName
string
true

Server name in which the logger is to be created.

Request Body

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
201CreatedInformation about the created logger was returned.HeadersSchema
400Bad RequestAn error occurred.Schema
404Not FoundThe requested CAS server 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.