Velo: Viewing Live Wix Logs

読了目安: 3分
Wix Logs lets you view logs in real-time. Tracking logs and errors as they are reported lets you gain immediate insight into Wix Logs.

仕組み

Wix Logs displays logs as they occur. A log is a JSON object representing logged information.

The Wix Logs window shows:
  • Basic log information.
  • Full JSON object for each log.

Logs stream to your Wix Logs window as they are generated.

To view Logs:

  1. Make sure Velo Dev Mode is enabled for your site.
  2. Select Developer Tools in the Velo Sidebar
  3. Under the Logging Tools section, select Wix Logs.
  1. To generate a log, preview or publish your site and trigger an event. For example, if you have a console log that runs when a button is clicked, click the button. You should see the log in your window.
You can also access Wix Logs from Preview mode in the Wix Editor. While in Preview mode, click Logging tools, then Wix Logs in the Developer Console.
備考
  • To view logs, reload the Wix Logs window.
  • You can view a list of actions that trigger logs here.
ヒント
If you don't see the live log stream in your window, refresh your site while the Wix Logs window is open in another tab.
Each log in the window includes the following fields:
  • Time: receiveTimestamp of the log. Time the log entry was received by Wix Logs.
  • Message: jsonPayload.message of the log. Payload message of the log in JSON format.
  • Level: severity of the log: INFO, WARNING, or ERROR.

View JSON

You can view the JSON object representing the log by clicking the log in the table. To hide the JSON object, click the log again.

Manage Live Logs

You can also do the following in the Wix Logs window:
備考
  • To learn how to trigger a site log if your Wix Logs window is empty, click here.
  • To learn how to connect your Wix Logs to an external monitoring tool of your choice, click here.  

これは役に立ったか?

|