uploadLogs

The uploadLogs method sends diagnostic logs from the terminal to the Modularity back-end systems. This is useful for troubleshooting, support, and system monitoring.

Request

📘

JSON-RPC 2.0

All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Startedfor more details on how the requests are structured and sent.

In the request, the method field should be set to uploadLogs, and the params must include the service name device:

{
    "jsonrpc": "2.0",
    "method": "uploadLogs",
    "id": "123454352",
    "params": [
        "device"
    ]
}

Response

A successful request will return a response similar to the one in the code block below:

{
    "result": {
        "statusCode": 0,
        "statusMessage": "ok"
    }
}

Response Parameters

Below is a table with all the possible response parameters and their description:

NameTypeDescription
statusCodeintegerOperation status (0 = success)
statusMessagestringOperation message