[WordPress] 外掛分享: Lumiblog Debug Log Inspector

首頁外掛目錄 › Lumiblog Debug Log Inspector
WordPress 外掛 Lumiblog Debug Log Inspector 的封面圖片
全新外掛
安裝啟用
尚無評分
31 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.1.0 上架:2026-01-27

內容簡介

Lumiblog Debug Log Inspector 是一款強大的質量保證與除錯工具,能夠監控 WordPress 的 debug.log 檔案,專注於外掛特定的錯誤。透過簡單的設定介面,無需編碼即可監控任何 WordPress 外掛,提升網站的穩定性與效能。

【主要功能】
• 通用外掛監控:可透過簡單設定頁面添加任何外掛
• 實時監控:自動掃描 debug.log 檔案中的錯誤
• 可視化狀態指示:顏色編碼的管理列顯示狀態
• 外掛特定追蹤:每個監控外掛的個別狀態
• 重複預防:智能驗證防止重複添加外掛
• 輕量級:對性能影響最小,效率高

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Lumiblog Debug Log Inspector」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Lumiblog Debug Log Inspector is a powerful quality assurance and debugging tool that monitors your WordPress debug.log file for plugin-specific errors. Unlike other debug tools, it allows you to monitor ANY WordPress plugin through an easy-to-use settings interface – no coding required!
Key Features

Universal Plugin Monitoring: Add any WordPress plugin to monitor through a simple settings page
No Code Editing: Add/edit/delete monitored plugins through the WordPress admin interface
Real-time Monitoring: Automatically scans your debug.log file for errors
Visual Status Indicators: Color-coded admin bar display (Green = OK, Red = Errors Found, Gray = Debug Logging Disabled)
Auto-Detection: Option to only monitor plugins that are currently active
Plugin-Specific Tracking: Individual status for each monitored plugin
Last Error Display: Shows the most recent error message for quick diagnosis
Duplicate Prevention: Smart validation prevents adding the same plugin twice
Enable/Disable Plugins: Toggle monitoring for specific plugins without deleting them
Lightweight: Minimal performance impact with efficient log reading
Well-Organized Code: Modular file structure for easy maintenance and customization

Perfect For

QA Teams testing multiple plugins
Plugin Developers debugging their own plugins
WordPress Developers monitoring client sites
Agency Teams managing multiple WordPress installations
Anyone who wants to keep track of plugin errors

How It Works

Install and activate the plugin
Go to Settings > Log Inspector
Add any plugin you want to monitor by providing:

Plugin Name (e.g., “WooCommerce”)
Plugin File Path (e.g., “woocommerce/woocommerce.php”)
Search Terms (e.g., “woocommerce, wc-“)

Check the admin bar for real-time error status

Requirements
To use this plugin effectively, you need to enable WordPress debug logging by adding these constants to your wp-config.php file:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

Testing the Plugin
To verify Lumiblog Debug Log Inspector is working correctly, follow these steps:
Step 1: Enable Debug Logging
Add to your wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

Step 2: Add a Plugin to Monitor

Go to Settings > Log Inspector
Click “Add New Plugin to Monitor”
Fill in the form with a plugin you have installed (e.g., WooCommerce)

Plugin Name: WooCommerce
Plugin File Path: woocommerce/woocommerce.php
Search Terms: woocommerce, wc-

Click “Add Plugin”

Step 3: Generate a Test Error
Note: Ensure that the test site is running on PHP 8.4+

Add this code snippet inside of any active plugin’s main file:
/**

DEBUG LOG INSPECTOR DEMO – PHP 8.4 Warning Trigger
REMOVE AFTER DEMO/TESTING!
*/
add_action( ‘load-index.php’, function() {
if ( version_compare( PHP_VERSION, ‘8.4.0’, ‘>=’ ) ) {
$test_array = array( ‘name’ => ‘Debug Log Inspector’ );
$undefined_value = $test_array[’email’]; // Triggers warning
error_log( ‘[DLI-DEMO-PHP84] PHP 8.4 warning triggered!’ );
}
});

Reload the site’s admin dashboard to trigger the error

Check your admin bar – it should turn RED

Step 4: View the Debug Log (Optional)
Navigate to wp-content/debug.log to see the actual error entries that were logged.
Clean Up:

Remove the test code you added
Either delete wp-content/debug.log or clear its contents
The admin bar should return to GREEN

Additional Information
Debug Constants
For enhanced debugging, you can also add these optional constants to your wp-config.php:
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
define( 'WP_DEBUG_DISPLAY', false ); // Set to false on production sites

For Developers
The plugin is designed to be easily extendable. All classes are well-documented and follow WordPress coding standards. Feel free to fork and customize for your specific needs.
Support
For support, feature requests, or bug reports, please visit the WordPress.org support forums for this plugin.
Contributing
Contributions are welcome! Please visit the plugin’s Github Repo for more information.

延伸相關外掛

文章
Filter
Mastodon