FBTZ Error Log Viewer Lite
View your PHP/WordPress error log directly in wp-admin — parsed, searchable, and easy to clear or export.
by Francois Bultez · github.com/francoisbultez/fbtz-error-log-viewer-lite
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/francoisbultez/fbtz-error-log-viewer-lite/archive/refs/heads/master.zip📝 Description
FBTZ Error Log Viewer Lite lets you view your WordPress/PHP error log directly inside the admin dashboard — safely, securely, and beautifully formatted.
No more digging through FTP files or SSH sessions — see logs instantly with filtering, search, grouping, and CSV export.
⚙️ Features
- 🔍 View & Search Logs directly in wp-admin.
- 🧠 Parsed Entries with timestamp, severity, file, and message.
- 📊 Grouping for identical issues with counts.
- 💾 Export CSV (parsed or grouped).
- ⚠️ Severity Highlighting: Error, Warning, Notice, Deprecated.
- 🧹 Clear Logs Safely with nonce + capability checks.
- 🌍 Translation Ready (
/languages/error-log-viewer-lite.pot). - ✅ PHPCS Compliant and Plugin Check clean.
🚀 Installation
- Upload
error-log-viewer-liteto/wp-content/plugins/. - Activate it in Plugins → Installed Plugins.
- Open Tools → Error Logs in your WordPress admin.
🧠 Configuration (Optional)
You can set a custom log file path in wp-config.php:
define( 'ELVL_LOG_PATH', '/path/to/custom.log' );
Or use the filter:
add_filter( 'elvl_log_path', function( $path ) {
return '/custom/path/error.log';
});
Make sure your site has debugging enabled:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
🛡️ Security
Admin-only (manage_options capability).
All write actions nonce-protected.
Fully escaped HTML output.
No external connections.
💬 FAQ
Q: My log file is empty or missing. A: That’s normal if no PHP errors have been triggered yet. Enable WP_DEBUG_LOG or define a custom path.
Q: Can I export logs? A: Yes! You can export as raw or structured CSV directly from wp-admin.
Q: Is it safe on production? A: Yes. Viewing is read-only; clearing logs is restricted to admins and protected by nonces.
🌍 Translation
Text Domain: fbtz-error-log-viewer-lite
Domain Path: /languages
POT File: /languages/fbtz-error-log-viewer-lite.pot
Help translate on translate.wordpress.org.
🧑💻 Contributing
Pull requests and issues welcome on 👉 GitHub – francoisbultez/fbtz-error-log-viewer-lite
🗒️ Changelog
1.3.2 Added /languages folder for domain validation.
Preferred WP_Filesystem with safe PHP fallbacks.
Plugin Check + PHPCS compliant.
1.3.1 Removed deprecated load_plugin_textdomain().
Fixed syntax issue on PHP 8+.
1.3.0 First public version.
📜 License
Licensed under the GNU General Public License v2 (or later). © 2025 Francois Bultez