This method sets log settings.
HTTP Request
- Supported Method: POST
/api/v1/logs/setLogLevel/ - Parameter name: SQDataLogLevelRequest
- Input Field
Parameter Type Description internalPipelineName string The name of the pipeline. For example, test-pipeline. logLevel string The selected log level. logOptions string List of log options. For example, "Debug" or "Warn". pipelineName string The name of the pipeline. For example, test-pipeline. projectId string Value of the project. The minimum length is 1. For example, 123. runtimeServerHost string The name of the runtime server. For example, Localhost. runtimeServerPort integer This port number should match whatever listener port you selected when installing the Apply engine. For example, 2626.
- Input Field
- Parameter content type - Both request body data and response data are formatted as JSON. Content type for responses will always be
application/json. - includeDaemon - boolean value "
True" or "False" - action - string value generated to find results
Code example
You can use cURL to execute the call. For example,
curl 'http://localhost:8026/api/v1/logs/setLogLevel/?includeDaemon=true|false&action=<string>'
-H "Content-Type: application/json"
-X POST
-d '
{
"internalPipelineName": "test-pipeline",
"logLevel": "3",
"logOptions": [
"Debug",
"Warn"
],
"pipelineName": "test-pipeline",
"projectId": "123",
"runtimeServerHost": "localhost",
"runtimeServerPort": 2626
}'Postman works the same way. Use Postman to query the end point with the Json payload list below. For example,
{
"internalPipelineName": "test-pipeline",
"logLevel": "3",
"logOptions": [
"Debug",
"Warn"
],
"pipelineName": "test-pipeline",
"projectId": "123",
"runtimeServerHost": "localhost",
"runtimeServerPort": 2626
}
"url": http://localhost:8026/api/v1/logs/setLogLevel?includeDaemon=true|false&action=<string>Response Fields
| Response Element | Type | Description |
| createdAt | string | |
| id | string | |
| message | string | |
| result | string | |
| success | boolean | |
| version | string |