๐Ÿ“„ Logs

The Logs section in WC Studio provides access to site-specific error logs, allowing you to debug PHP errors, Laravel stack traces, cron failures, and more. This is your primary tool for identifying what went wrong when your store or custom features misbehave.

๐Ÿ“ Accessing Logs

Go to: WC Studio โ†’ Stores โ†’ Select a Store โ†’ Advanced โ†’ Logs Each store has its own isolated logs for security, visibility, and clarity.

๐Ÿงพ Log Format

Logs follow a standard format, which includes:
  • Timestamp of the error
  • Error level (e.g. local.ERROR)
  • Error message
  • Stack trace

๐Ÿ” Using the Logs Interface

  • Logs are automatically grouped by date
  • You can search by keywords (e.g., error type, class name)
  • Click any log entry to expand and view the full trace
  • Use filters to sort logs by severity: error, warning, info

๐Ÿ›  Log Management Options

OptionDescription
Download LogsExport logs as .txt files for local debugging
Clear LogsManually delete old logs you no longer need
Auto RotationWC Studio automatically rotates logs to prevent overgrowth

โš ๏ธ Common Errors Youโ€™ll See

  • ๐Ÿ”ง Missing service providers or Laravel packages
  • ๐Ÿงฉ Plugin/theme compatibility errors
  • ๐Ÿ›  PHP fatal errors (class/function not found)
  • โฑ Cron job failures
  • ๐Ÿ”— Broken API/webhook integrations

๐Ÿ’ก Pro Tips

  • โœ… Enable WP_DEBUG and Log Errors in WP Config for detailed error tracking
  • โœ… Pair logs with Snapshots to roll back if debugging causes new issues
  • โœ… Use logs after updates, deployments, or plugin/theme changes to verify stability

๐Ÿง  Example Log Output

[2025-01-22 10:31:11] local.ERROR: Class "Barryvdh\Debugbar\ServiceProvider" not found {
"exception":"[object] (Error(code: 0): Class \"Barryvdh\\Debugbar\\ServiceProvider\" not found at /var/www/html/my.wcstudio.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:935)

[stacktrace]
#0 /vendor/laravel/framework/.../Application.php(867): resolveProvider()
#1 /vendor/laravel/framework/.../ProviderRepository.php(75): register()
...
"}