Add a new appender
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.
Name | Type | Required | Description |
---|---|---|---|
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 |
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | Created | ||
400 | Bad Request | Bad Request |