- Stitch >
- Application Logs >
- Types
Function Logs¶
On this page
Overview¶
Function logs are created whenever a user calls a MongoDB Stitch Function via the Stitch SDK. While Functions can be executed via a Trigger, only functions directly called via the SDK generate logs of the Function type.
Log Format¶
Function log entries have the following form:
Fields¶
Field | Description |
---|---|
Remote IP Address | The IP Address that sent the request to MongoDB Stitch. (e.g. 52.21.89.200 ) |
Compute Used | The computational load of the operation. |
Platform Version | The version of the platform that sent the request. |
SDK | The SDK used to send the request. Potential values include any Stitch Client SDK. For a browser, this is Example This request came from the Stitch JS Browser SDK version 4.0.0 running on Mozilla Firefox This request came from the Stitch Android SDK version 4.6.0 running on Android Marshmallow: |
Function Call Location | The data center in which the function was executed. |
Logs | A list of console.log outputs. Stitch saves the first 256 bytes of the first 10 console.log() calls. |
Error Fields¶
Log entries created by unsuccessful operations may feature additional fields for debugging purposes. These include the following:
Field | Description |
---|---|
Error | A brief description of an error. |
Stack Trace | A printout of an exception stack trace. |
Details | Extra information about an execution, including action, reason, service name, and service type. |