Summary
Update the log levels.
Description
Update the log levels for an application.
Route
PUT /applications/:name/loglevel
Roles
admin
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| name |
string |
yes |
The name for the selected application. |
| properties |
object |
yes |
Contains the log levels for the application. |
Copied to Clipboard
{
"properties": {
"transport": "syslog"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"properties": {
"title": "properties",
"type": "object",
"properties": {
"transport": {
"type": "string",
"enum": [
"file",
"console",
"syslog"
]
}
},
"if": {
"properties": {
"transport": {
"const": "syslog"
}
}
},
"then": {
"properties": {
"level": {
"$ref": "services-schema#/definitions/sys_log_level"
}
}
},
"else": {
"properties": {
"level": {
"$ref": "services-schema#/definitions/log_level"
}
}
}
}
},
"required": [
"properties"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| result |
object |
The result of updating the log levels for an application. |
Copied to Clipboard
{
"status": "Created",
"message": "A sample success message"
}