LiKoToN WP Debug
A lightweight, modern debugging plugin for WordPress that automatically collects PHP errors, WordPress errors, REST API calls, and user login events. Includes a clean log viewer with filters, sorting, dark mode, CSV export, and automatic cleanup.
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/likot180/likoton-wp-debug/archive/refs/heads/main.zipReadme
LiKoToN WP Debug
A lightweight, modern debugging plugin for WordPress that automatically collects PHP errors, WordPress errors, REST API calls, and user login events.
Includes a clean log viewer with filters, sorting, dark mode, CSV export, and automatic cleanup.
Features
Log Collection
- PHP errors & warnings
- WordPress errors (
wp_error_added) - REST API requests (route, method, params)
- User login events
- Custom logs via
LWD_Logger::log()
Logs Viewer
- AJAX live filtering
- Search, level, source, last X logs
- Client-side sorting
- Color-coded badges
- Responsive table
Dark Mode
- WordPress 7-style toggle
- Applies to all plugin pages
Settings
- Dark mode
- Log retention (30m → 1 month)
- Capability required to view logs
- Auto-save via AJAX with toast notification
Automatic Cleanup
- WP-Cron based
- Configurable retention
- Table optimization
Export
- Export all logs to CSV
- Secured with nonce & capability check
Installation
From WordPress Dashboard
- Upload the plugin ZIP
- Activate LiKoToN WP Debug
- Go to LiKoToN WP Debug → Logs
Manual installation
- Upload folder
likoton-wp-debugto/wp-content/plugins/ - Activate plugin
- Logs appear in the main admin menu
Developer API
Custom logs
LWD_Logger::log( 'info', 'custom_source', 'Something happened', [ 'extra' => 'data' ] );
Supported log levels
PSR-3 + extended PHP levels:
- debug,
- info,
- notice,
- warning,
- error,
- critical,
- alert,
- emergency,
- deprecated,
- user_deprecated,
- strict,
- parse,
- core_error,
- core_warning,
- compile_error,
- compile_warning,
- recoverable_error,
- user_error,
- user_warning,
- user_notice
FAQ
Does this slow down my site? No, logs are stored in a dedicated table and inserted efficiently.
Can I export logs? Yes, via the Export logs (CSV) button.
Can I restrict access? Yes, choose the required capability in Settings.
Multisite support? Yes, each site has its own logs table.
Changelog
1.0.0
- Initial release
- PHP/WP/REST/login logging
- AJAX filters
- Dark mode
- CSV export
- Automatic cleanup
- Capability control