Skip to main content

Debug logs

Lyftio provides built-in debug logging to help you inspect script behavior, troubleshoot issues, and verify that experiments are running as expected. These logs will appear in the Editor, Preview, and when the script runs on your website. Note that they are only visible locally to you.

How to enable debug logs

You can enable all debug logs directly from your browser’s developer tools console.

  1. Open your browser’s DevTools
  2. Navigate to the Console tab
  3. Run the following command:
Lyftio.Logger.enableAll();

How to disable debug logs

If you do not want the logs to appear anymore you can disable them with the following command:

Lyftio.Logger.disableAll();

Disable trace logging in editor

If you want logging in the editor but do not want the trace of hovered elements to be logged you can disable that with the following command:

Lyftio.Logger.disableLogger("Trace");