Docs Menu
Docs Home
/ /
Atlas App Services
/ /

Function Logs

On this page

  • Overview
  • Log Format
  • Fields
  • Error Fields

Function logs are created whenever a user calls an Atlas Function using a Realm SDK. While you can execute Functions with a Trigger, only functions directly called from an SDK generate logs of the function type.

Function log entries have the following form:

Logs:
[
<log line>,
<log line>,
...
]
{
"arguments": [
<arg1>,
<arg2>
],
"name": <function name>,
"service": ""
}
Function Call Location: <location>
Compute Used: <number> bytes•ms
Remote IP Address: <ip address>
SDK: <sdk>
Platform Version: <version>
Field
Description
Remote IP Address
The IP Address that sent the request to Atlas App Services. (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 SDK. For a browser, this is <browser> <SDK version>.

Example

This request came from the Realm Web SDK version 4.0.0 running on Mozilla Firefox:

SDK: firefox v4.0.0

This request came from the Realm Java SDK version 4.6.0 running on Android Marshmallow:

SDK: android v4.6.0
Function Call Location
The data center in which the function was executed.
Logs
A list of console.log outputs. App Services saves the first 512 bytes of the last 25 console.log() calls.

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.

Back

Endpoint Logs