Search.../

sourceLocation

Source code location information associated with the log entry.

Description

Provides location information for source code associated with the log entry.

Note: Currently only applicable for backend log entries with the Velo namespace.

Type:

LogEntrySourceLocationRead Only
NAME
TYPE
DESCRIPTION
file
string

Name of the source file.

line
number

Line within the source file. 1-based. 0 indicates no line number available.

Was this helpful?

Log entry source location information for an HTTP function

Request

Copy Code
1{
2 // ...
3
4 "sourceLocation": {
5 "file": "http-functions.js",
6 "line": 24
7 },
8
9 // ...
10}
Log entry source location information for a web module function

Request

Copy Code
1{
2 // ...
3
4 "sourceLocation": {
5 "file": "backend/calculator.jsw", // web module
6 "line": 14
7 },
8
9 // ...
10}