+

Getting Started (3)

+

Ai Configuration (5)

+

Woocommerce Integration (6)

+

Chatbot Implementation (3)

+

Customization (2)

+

Conversation Management (2)

+

Chatbot Menu Settings (5)

+

Performance And Optimization (1)

Using the Debug Log

Reading Time: 2 minutes

The Debug Log is a powerful tool built into the WPiko Chatbot plugin that helps you monitor activity, troubleshoot issues, and understand how your chatbot is interacting with users and AI models.

Accessing the Debug Log

To access the Debug Log:

  • Navigate to your WordPress Dashboard.
  • Go to WPiko Chatbot > Debug Log.
  • Features

    1. Enable/Disable Logging

    By default, debug logging might be disabled to save resources.

  • Toggle the switch in the top-right corner to “Logging Active” to start capturing events.
  • Recommendation: Keep logging disabled when not actively troubleshooting to optimize website performance.
  • 2. Log Statistics

    The top of the page features a dashboard showing a quick overview of your log entries:

  • Total Entries: The total number of recorded events.
  • Errors: Critical issues that need attention (e.g., API connection failures).
  • Warnings: Non-critical issues that might affect performance.
  • Info: General operational events.
  • 3. Log Viewer

    The main table displays the most recent 100 log entries with the following details:

  • Time: The exact timestamp of the event.
  • Level: The severity of the log (Error, Warning, Info).
  • Message: A detailed description of the event.
  • 4. Toolbar Actions

    Use the toolbar above the log table to manage your logs:

    • Filter Logs: Use the dropdown menu to view specific types of logs (e.g., “Errors Only”).
    • Refresh: Click the update icon to load the latest logs without reloading the page.
    • Copy to Clipboard: Click the clipboard icon to copy the currently visible logs to your clipboard for sharing with support teams.
    • Clear Logs: Click the trash icon to permanently delete all recorded log entries.

    When to Use the Debug Log

    You should check the Debug Log if:

  • The chatbot is not responding to user queries.
  • You are experiencing issues with AI model connections (e.g., API key errors).
  • You want to verify that settings changes are being applied correctly.
  • You are seeing unexpected behavior during conversations.
  • Common Log Messages

    • Authentication failed: Usually indicates an incorrect or missing API key.
    • Rate limit exceeded: You have hit the usage limits of your OpenAI account.
    • Model overloaded: The AI service is currently busy, try again later.
    • Response timeout: The request took too long to process.