Add a new appender

put/cas/appenders/{appenderName}

Add a new appender to the system, either a console appender or a file appender. Some parameters are specific to the file appender and, although marked as required, are not required for the console appender.

Request Samples

Response Samples

1Not Available

Path Parameters

NameTypeRequiredDescription
appenderName
string
true

Get an appender by name.

Query Parameters

NameTypeRequiredDescription
append
boolean
true

When type=="file", causes the appender to append to existing content in the file instead of truncating it.

flush
boolean
true

Immediately flushes output instead of buffering.

namePrefix
string
true

When type == "file", prefix used for filenames of log files. Helpful when using routing several groups of loggers to different appenders.

path
string
true

When type=="file", the path where the file will reside.

type
string
true

The type of appender being added, either "file" or "console".

Allowed values:
fileconsole

Request Body

NameTypeRequiredDescription
type
string
true

The type of appender being added, either "file" or "console".

Allowed values:
fileconsole
flush
boolean
true

Immediately flushes output instead of buffering.

append
boolean
true

When type=="file", causes the appender to append to existing content in the file instead of truncating it.

path
string
true

When type=="file", the path where the file will reside.

namePrefix
string
true

When type == "file", prefix used for filenames of log files. Helpful when using routing several groups of loggers to different appenders.

Responses

StatusMeaningDescription
201Created

Created

400Bad Request

Bad Request