sandywp / plugins / debug-log-manager
Debug Log Manager
Conveniently Monitor and Inspect Errors
Log PHP, database and JavaScript errors via WP_DEBUG with one click. Conveniently create, view, filter and clear the debug.log file.
Ready in seconds.
v2.5.2 10,000+ installs WP 4.6+ PHP 5.6+

What you get inside
4 screens-
Debug Log Manager main page
-
Fatal errors with the stack trace
-
More log entries sample
-
Admin bar indicator and dashboard widget
About this plugin
Debug Log Manager allows you to:
- Enable WP_DEBUG with one click to log PHP, database and JavaScript errors when you need to, and disable it when you’re done. No need to manually edit wp-config.php file.
- Create the debug.log file for you in a non-default location with a custom file name for enhanced security.
- Copy the content of the default / existing debug.log file into the custom debug.log file, and delete the default / existing debug.log file. So there is continuation in logging and enhanced security going forward.
- Parse the debug.log file and view distinct errors and when they last occurred, which is better than looking at the raw log file (potentially) full of repetitive errors.
- Quickly find and filter more specific errors for your debugging work.
- Make error details easier to read by identifying error source (core / plugin / theme) and separating file path and line number.
- Easily view files where PHP errors occurred. This includes WordPress core, plugin and theme files.
- Enable auto-refresh to automatically load new log entries. No need to manually reload the browser tab, or to
tail -fthe log file on the command line. - Easily clear the debug.log file to save disk space and more easily observe newly occurring errors on your site.
- Show an indicator on the admin bar when error logging is enabled.
- Add a dashboard widget showing the latest errors logged.
- Use
error_log()to output error info into your debug log. e.g.error_log( $error_message )for simple, string-based error message, orerror_log( json_encode( $error ) )when inspecting a more complex error info, e.g. array or object. - Auto-trim debug.log file size so it does not grow larger than the available memory. This prevents out-of-memory error when trying to parse and view the debug.log file.
A simpler and more compact version of Debug Log Manager is included as part of the System Dashboard plugin, should you prefer a single plugin that does more.
What Users Say
“This is a great plugin for dev especially for people who tinker in the code.” ~PK Son
“I have used a couple of other logger plugins and this is by far the best one.” ~Brian Henry
“Another massive time-saving tool.“ ~Jeff Starr
Give Back
- A nice review would be great!
- Give feedback and help improve future versions.
- Help translate into your language.
- Github repo to contribute code.
- Sponsor my work.
Check These Out Too
- System Dashboard: Central dashboard to monitor various WordPress components, processes and data, including the server.
- Variable Inspector: Inspect PHP variables on a central dashboard in wp-admin for convenient debugging.
- Admin and Site Enhancements helps you to easily enhance various admin workflows and site aspects while replacing multiple plugins doing it.
- WordPress Newsboard: The latest news, articles, podcasts and videos from 100+ WordPress-focused sources.
Questions
- Will this work with the managed WordPress hosting I am on?
Maybe. It’s been tested with Kinsta and GridPane (with Secure Debug turned off). If you find it’s not working with your managed host, please post in the support forum about the issue / error you encounter. I may ask for a test site that I can work with.
- How was this plugin built?
Debug Log Manager is built using the excellent WPConfigTransformer class from WP Debug Log – Config Tool, DataTables.js, jSticky and jQuery Toast.
sandywp / also on the shelf
Try another plugin
4.5 · 300K+ installs
Take control of the cron events on your WordPress website or WooCommerce store with WP Crontrol.
4.9 · 200K+ installs
Query Monitor is the developer tools panel for WordPress and WooCommerce.
4.1 · 20K+ installs
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.