> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: View Logs using Wix Logs

## Article: Viewing Live Wix Logs

## Article Link: https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/view-logs-using-wix-logs.md

## Article Content:

# View Logs using Wix Logs

Wix Logs allow you to view [logs](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/about-logs.md) in real-time, and you can pause, resume, or clear the log stream. Logs contain [metadata](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/log-object-structure.md) as well as the log's payload message.

<div style="text-align:center"><iframe src="https://www.youtube.com/embed/B2IBEAp72jU" style="width:650px;height:375px;"></iframe></div>

> **Notes**:
> 
> - Logs viewed in Wix Logs can't be saved. To save logs for later use, use [Google Cloud Logs](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/view-logs-using-google-cloud-logs.md) or another [external logging tool](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/view-logs-using-an-external-monitoring-tool.md).
> - You can also use the [Site Monitoring service plugin](https://dev.wix.com/docs/velo/api-reference/wix-site-monitoring/service-plugin-spi/site-monitoring/introduction.md) to examine Wix Logs in real time. The [`LogEntry` object](https://dev.wix.com/docs/velo/api-reference/wix-site-monitoring/service-plugin-spi/site-monitoring/log-entry/introduction.md) contains the data for each log.


## View the logs

1. In the site dashboard, click **Developer Tools** > **Logging Tools**.

1. In the **Wix Logs** section, click **Open**. The Wix Logs page opens.

   <div style="text-align:left">

   <img src="https://wixmp-833713b177cebf373f611808.wixmp.com/images/6f82b8af9105b4198ffe5babf7d6114d.png" style="max-width:40vw" />

   </div>

1. To generate a log, preview or publish your site and [trigger an event that generates a log](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/generate-logs-to-debug-your-site.md). For example, if you have a button that, when clicked, logs the result of 2 multiplied numbers, click the button. The logs indicating success appear in the **Wix Logs** page:
    
    <div style="text-align:center">
    
    <img src="https://wixmp-833713b177cebf373f611808.wixmp.com/images/da26b939d6e7ef222f7aaa6b54d1bccf.png" style="max-width:40vw" />
    
    </div>
    
    Similarly, if not successful, the logs might display as follows:
    
    <div style="text-align:center">
    
    <img src="https://wixmp-833713b177cebf373f611808.wixmp.com/images/dbf2dc66af923e4d2c64564f8332de90.png" style="max-width:40vw" />
    
    </div>
    
    
    <blockquote class="tip">
    
    **Tip:**
    If the live log stream does not appear, refresh your site while the Wix Logs page is open in another tab.
    
    </blockquote>

    By default, each log displayed in the Wix Logs page includes the following fields:

    | Column      | Description                                                    | [Log object](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/log-object-structure.md) property |
    | ----------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
    | **Level**   | Log's severity level. Possible values are: <br><br> `INFO`, `WARNING`, `ERROR`, or `DEBUG`. | `severity` |
    | **Time**    | Timestamp when the log was triggered.                                        | `receiveTimestamp`                                                                                                                       |
    | **Message** | Log's payload message in JSON format.                                              | `jsonPayload.message`                                                                                                                    |
    | **Source file** | Path to the source file that generated the log message.                                              | `sourceLocation.file`                                                                                                                    |
    
    
1. You can change the view to suit your needs: 

    - To change the order of columns or display additional ones, such as the operation ID and the data stream, click ![customize-icon](https://wixmp-833713b177cebf373f611808.wixmp.com/images/3f5bdbf487735a2fe93e9717218340ac.png).
   
    - Filter the log messages by:
 
        - **Stream**. Filter by preview, live site, or both.
        - **Level**. Limit the logs by info, warning, error, or debug.
    
    
    - Find specific logs by providing search criteria. 


1. To view additional details for a log, hover over it and click **View**. See the [log object structure](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/log-object-structure.md) for an explanation of each field.

1. To copy the object in JSON format, click ![ellipsis-icon](https://wixmp-833713b177cebf373f611808.wixmp.com/images/0e583769d1305e30a5e8d6ca6ed59453.png) and then **Copy JSON**.


## See also

- [About Logs](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/about-logs.md)
- [View logs using Google Cloud Logs](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/view-logs-using-google-cloud-logs.md)
- [View logs using an external monitoring tool](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/view-logs-using-an-external-monitoring-tool.md)
- [Tutorial | Generate logs to debug a site](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/generate-logs-to-debug-your-site.md)
- [Log object structure](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/logs/log-object-structure.md)
- [Site monitoring service plugin](https://dev.wix.com/docs/velo/api-reference/wix-site-monitoring/service-plugin-spi/site-monitoring/introduction.md)