Wix Logs allow you to view your site's logs in real-time directly in your site's dashboard. Logs are displayed in a list that updates in real-time, and you can pause, resume, or clear the log stream. Site logs contain metadata as well as the log's payload message.
Note: Logs viewed in Wix Logs cannot be saved. To save logs for later use, use Google Cloud Logs or another external logging tool.
To view your site logs using Wix Logs:
Enable code:
In the site dashboard, click Developer Tools > Logging Tools.
In the Wix Logs section, click Open. The Wix Logs dashboard page opens.
To generate a log, preview or publish your site and trigger an event that generates a log. For example, if you have a button that logs text to the console when clicked, click the button. The log appears in the Wix Logs page:
Each log displayed in the Wix Logs page includes the following fields:
Column | Description | Log object property |
---|---|---|
Time | Time when the log was received by Wix Logs. | receiveTimestamp |
Message | Log's payload message in JSON format. | jsonPayload.message |
Level | Log's severity level. Possible values are: INFO , WARNING , or ERROR . | severity |
In the Wix Editor, you can also access Wix Logs from Preview mode. While in Preview mode, click Logging tools in the Developer Console, and then click Wix Logs.
Tip: If the live log stream does not appear, refresh your site while the Wix Logs page is open in another tab.