Your answer is on the way...

Velo: About Wix Logs

2 min read
Visit the Velo by Wix website to onboard and continue learning.
Wix Logs lets you gather information about logs, HTTP functions, and web module functions. View logs in real time, or connect Wix Logs to external monitoring tools to generate metrics and analyze errors.
Note
To use site logs, you must enable Velo Dev Mode for your site.

How It Works

Wix Logs displays logs, with each log represented as a JSON object. For a detailed description of the JSON structure of a log click here.

Viewing Wix Logs

You can investigate your logs in the following ways:
  • View logs in real time: You can quickly scan basic log information or view the JSON object representing each log. Logs are loaded as they occur. Learn more.
  • Connect to Google Cloud Logs: You can easily connect your site's logs to Google's external monitoring tool. Google Cloud Logs performs log analysis and generates visual depictions of log data, allowing you to extract meaningful insights from your logs. Learn more.
  • Connect to an external monitoring tool: You can connect your Wix Logs to a monitoring tool of your choice to generate metrics and analyze logs. Learn more.  

Log Types

Wix can record logs for the following:
  • User-generated console object functions in the backend and frontend. Example: console.info( )
  • Backend errors.
  • Unexpected errors in the frontend.
Notes
  • Error logs include a stack trace.
  • Currently, you cannot add content to logs. All log data is generated by Wix.
  • Logs are generated for your site in both preview mode and on your published site. Use the log labels.viewMode field to differentiate between logs generated in each mode.
  • Verbose logging is only supported for routers.

Site Revisions

You can use Wix Logs together with your Site History and the Release Manager to compare, debug, and analyze different revisions of your site. Each time you manually save or publish your site following a change, a new revision is created. The revisions are stored in Site History, and you can create a test site for a revision in the Release Manager.

You can get the site revision ID for each site revision using the wix-site-frontend revision API. Then you can use the labels.revision field in a logs JSON representation to identify for which revision a log occurred. This allows you to compare metrics for different revisions of your site or debug errors in new revisions.

Did this help?

|