Navigation

Trigger Logs

Important

The MongoDB Stitch SDK is deprecated. For guidance on migrating to MongoDB Realm, please see Migrate Your App from Stitch to Realm.

Overview

Trigger logs are created whenever Stitch executes a Function via a Trigger.

Log Format

Trigger log entries have the following form:

Logs:
[
   <log line>,
   <log line>,
   ...
]

 See Function. See Trigger.

 Compute Used: <number> bytes•ms

Fields

Field Description
Compute Used The computational load of the operation.
Logs A list of console.log outputs. Stitch saves the first 256 bytes of the first 10 console.log() calls.
See Function. See Trigger. Links to the Trigger that launched this event as well as the Function that was run by this event.

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.