The site log object contains messages and metadata about events and errors that occur on your site. Site logs are generated by Wix, and with the exception of the payload message, their structure and data cannot be modified.
The site log object includes the following fields:
Field | Type | Description |
---|---|---|
timestamp | string | Time the log event occurred. Date string in ISO 8601 date format. |
receiveTimestamp | string | Time the log entry was received by Wix Logs or the external monitoring tool. Date string in ISO 8601 date format. |
severity | string | Severity of the log entry. Possible values: INFO : Status, performance, or other general information. WARNING : An unexpected or undesired development that may cause problems. ERROR : A serious issue likely to cause problems. |
insertId | string | Each log entry is assigned a unique ID. A log entry that has the same insertId as another log entry indicates a duplicate. |
labels | object | Additional information about the log entry. |
labels.siteUrl | string | Base URL of the site associated with the log entry. |
labels.namespace | string | Name of Wix app associated with the log entry, such as Wix Stores or Wix Bookings. The generic namespace Velo represents site code not associated with any specific Wix app. Only the Velo namespace is currently supported. |
labels.tenantId | GUID | Unique site identifier. Does not change even if the site name or other site parameters change. |
labels.viewMode | string | Viewing mode in which the log entry originated. Possible values: Preview : Site preview mode. Site : Published site. |
labels.revision | string | Unique site revision identifier. You can use the revision property together with the Release Manager to monitor and debug new site revisions. |
operation | object | Additional information about a potentially long-running operation associated with the log entry. |
operation.id | string | Unique operation identifier. |
operation.producer | string | Operation context, such as the page or web module where the operation took place. |
sourceLocation | object | Source code location information. Applies to backend log entries with the Velo namespace. |
sourceLocation.file | string | File that generated the log. |
sourceLocation.line | number | Number of line that generated the log. |
jsonPayload | object | Log payload in JSON format. |
jsonPayload.message | string | Payload message. |
Some operations, such as an endpoint call or a scheduled job, generate multiple log entries. The operation
object allows you to find the logs associated with a specific operation. Use the unique operation.id
field to identify which operation generated the logs, and the producer
property to view the context in which the operation took place.
Here's an example site log object: