View logs relating to the operation of a Deployment.
Deployment Logs assist clients in managing their Deployment.
Representations
DeploymentLog
The data representation of a Deployment log.
typeString | Can be "HTTP_REQUEST", "APPLICATION_TEXT", or "APPLICATION_JSON" |
deploymentIdString | Unique identifier of the Deployment. |
applicationNameString | Name of the Connect application. |
severity | Severity of the log message. Default:DEFAULT |
timestamp | Timestamp of the log message. |
detailsAny | Event details of the log message. |
{
"type": "APPLICATION_TEXT",
"deploymentId": "ae4b0e53-c6b0-4d5d-9ba7-3e60496c17a1",
"applicationName": "service",
"severity": "DEFAULT",
"timestamp": "2023-03-15T11:05:01.912Z",
"details": {
"message": "Listening on port: 8080"
}
}DeploymentLogCursorPagedQueryResponse
dataArray of DeploymentLog | Array of DeploymentLog objects. |
nextString | The next page token. |
DeploymentLogSeverity
The severity of the log message.
DEFAULTThe log entry has no assigned severity level.
DEBUGDebug or trace information.
INFORoutine information, such as ongoing status or performance.
NOTICENormal but significant events, such as start up, shut down, or a configuration change.
WARNINGWarning events might cause problems.
ERRORError events are likely to cause problems.
CRITICALCritical events cause more severe problems or outages.
ALERTA person must take an action immediately.
EMERGENCYOne or more systems are unusable.
Query Deployment Logs
Query Deployment Logs by ID
Retrieves logs for the given deployment.
manage_project:{projectKey}manage_connectors_deployments:{projectKey}view_connectors_deployments:{projectKey}projectKeyString | The Composable Commerce Project key. |
idString | id of the Deployment |
regionString | Region in which the Project is hosted. |
pageTokenString | |
applicationNameString | Filter results by a specific applicationName. |
startDate | Filter results by defining a start date. This value can be up to 30 days in the past. |
endDate | Filter results by defining an end date of the logs. |
DeploymentLogCursorPagedQueryResponse
asapplication/jsoncurl --get https://connect.{region}.commercetools.com/{projectKey}/deployments/{id}/logs -i \
--header "Authorization: Bearer ${BEARER_TOKEN}"{
"data": [
{
"type": "APPLICATION_TEXT",
"deploymentId": "ae4b0e53-c6b0-4d5d-9ba7-3e60496c17a1",
"applicationName": "cartExtension",
"severity": "DEFAULT",
"timestamp": "2023-03-15T11:05:01.912Z",
"details": {
"message": "Listening on port: 8080"
}
}
],
"next": "EAE4tNC3g73ogeEpSr4GIioiGgoYNjQxMWE2NmMwMDA4NDI2OTc1MDQ4YWIyKgwI7MzGoAYQq"
}Query Deployment logs by Key
Retrieves logs for the given deployment.
manage_project:{projectKey}manage_connectors_deployments:{projectKey}view_connectors_deployments:{projectKey}projectKeyString | The Composable Commerce Project key. |
keyString | key of the Deployment |
regionString | Region in which the Project is hosted. |
pageTokenString | |
applicationNameString | Filter results by a specific applicationName. |
startDate | Filter results by defining a start date. This value can be up to 30 days in the past. |
endDate | Filter results by defining an end date of the logs. |
DeploymentLogCursorPagedQueryResponse
asapplication/jsoncurl --get https://connect.{region}.commercetools.com/{projectKey}/deployments/key={key}/logs -i \
--header "Authorization: Bearer ${BEARER_TOKEN}"{
"data": [
{
"type": "APPLICATION_TEXT",
"deploymentId": "ae4b0e53-c6b0-4d5d-9ba7-3e60496c17a1",
"applicationName": "cartExtension",
"severity": "DEFAULT",
"timestamp": "2023-03-15T11:05:01.912Z",
"details": {
"message": "Listening on port: 8080"
}
}
],
"next": "EAE4tNC3g73ogeEpSr4GIioiGgoYNjQxMWE2NmMwMDA4NDI2OTc1MDQ4YWIyKgwI7MzGoAYQq"
}