| 1 |
# Debug Log Manager |
| 2 |
|
| 3 |
Contributors: qriouslad |
| 4 |
Donate link: https://paypal.me/qriouslad |
| 5 |
Tags: debug, errors, developer |
| 6 |
Requires at least: 4.8 |
| 7 |
Tested up to: 6.0.2 |
| 8 |
Stable tag: 1.3.3 |
| 9 |
Requires PHP: 5.6 |
| 10 |
License: GPLv2 or later |
| 11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 12 |
|
| 13 |
 |
| 14 |
|
| 15 |
Log errors via WP_DEBUG. Create, view and clear debug.log file. |
| 16 |
|
| 17 |
## Description |
| 18 |
|
| 19 |
Debug Log Manager allows you to: |
| 20 |
|
| 21 |
* **Enable [](https://wordpress.org/support/article/debugging-in-wordpress/WP_DEBUG](https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/) with one click** to log PHP and database errors when you need to, and disable it when you're done. No need to manually edit wp-config.php file. |
| 22 |
* **Create the debug.log file for you** in a non-default location with a custom file name for enhanced security. |
| 23 |
* **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. |
| 24 |
* 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. |
| 25 |
* **Quickly find and filter more specific errors** for your debugging work. |
| 26 |
* **Enable auto-refresh** to automatically load new log entries. No need to manually reload the browser tab, or to ```tail -f``` the log file on the command line. |
| 27 |
* **Easily clear the debug.log file** to save disk space and more easily observe newly occurring errors on your site. |
| 28 |
|
| 29 |
A more compact version of Debug Log Manager is included as part of the [](https://wordpress.org/plugins/system-dashboard/System Dashboard plugin](https://wordpress.org/plugins/system-dashboard/](https://wordpress.org/plugins/system-dashboard/), should you prefer a single plugin that does more. |
| 30 |
|
| 31 |
### Give Back |
| 32 |
|
| 33 |
* [](https://wordpress.org/plugins/debug-log-manager/#reviewsA nice review](https://wordpress.org/plugins/debug-log-manager/#reviews](https://wordpress.org/plugins/debug-log-manager/#reviews) would be great! |
| 34 |
* [](https://wordpress.org/support/plugin/debug-log-manager/Give feedback](https://wordpress.org/support/plugin/debug-log-manager/](https://wordpress.org/support/plugin/debug-log-manager/) and help improve future versions. |
| 35 |
* [](https://github.com/qriouslad/debug-log-managerGithub repo](https://github.com/qriouslad/debug-log-manager](https://github.com/qriouslad/debug-log-manager) to contribute code. |
| 36 |
* [](https://paypal.me/qriousladDonate](https://paypal.me/qriouslad](https://paypal.me/qriouslad) and support my work. |
| 37 |
|
| 38 |
### Check These Out Too |
| 39 |
|
| 40 |
* [](https://wordpress.org/plugins/system-dashboard/System Dashboard](https://wordpress.org/plugins/system-dashboard/](https://wordpress.org/plugins/system-dashboard/): Central dashboard to monitor various WordPress components, processes and data, including the server. |
| 41 |
* [](https://wordpress.org/plugins/variable-inspector/Variable Inspector](https://wordpress.org/plugins/variable-inspector/](https://wordpress.org/plugins/variable-inspector/): Inspect PHP variables on a central dashboard in wp-admin for convenient debugging. |
| 42 |
* [](https://wordpress.org/plugins/code-explorer/Code Explorer](https://wordpress.org/plugins/code-explorer/](https://wordpress.org/plugins/code-explorer/): Fast directory explorer and file/code viewer with syntax highlighting. |
| 43 |
* [](https://github.com/qriouslad/database-adminDatabase Admin](https://github.com/qriouslad/database-admin](https://github.com/qriouslad/database-admin): Securely manage your WordPress website's database with a clean and user-friendly interface based on a custom-themed Adminer app. Only available on Github. |
| 44 |
|
| 45 |
## Screenshots |
| 46 |
|
| 47 |
1. Debug Log Manager main page |
| 48 |
 |
| 49 |
|
| 50 |
## Frequently Asked Questions |
| 51 |
|
| 52 |
### How was this plugin built? |
| 53 |
|
| 54 |
Debug Log Manager is built using the excellent [](https://plugins.svn.wordpress.org/debug-log-config-tool/tags/1.1/src/Classes/vendor/WPConfigTransformer.phpWPConfigTransformer class](https://plugins.svn.wordpress.org/debug-log-config-tool/tags/1.1/src/Classes/vendor/WPConfigTransformer.php](https://plugins.svn.wordpress.org/debug-log-config-tool/tags/1.1/src/Classes/vendor/WPConfigTransformer.php) from [](https://wordpress.org/plugins/debug-log-config-tool/WP Debug Log – Config Tool](https://wordpress.org/plugins/debug-log-config-tool/](https://wordpress.org/plugins/debug-log-config-tool/), [](https://datatables.net/DataTables.js](https://datatables.net/](https://datatables.net/), [](https://github.com/AndrewHenderson/jStickyjSticky](https://github.com/AndrewHenderson/jSticky](https://github.com/AndrewHenderson/jSticky) and [](https://github.com/kamranahmedse/jquery-toast-pluginjQuery Toast](https://github.com/kamranahmedse/jquery-toast-plugin](https://github.com/kamranahmedse/jquery-toast-plugin). |
| 55 |
|
| 56 |
## Changelog |
| 57 |
|
| 58 |
### 1.3.3 (2022.09.20) |
| 59 |
|
| 60 |
* Bug fix: undefined function wp_filesize() in bootstrap.php. Props to [](https://wordpress.org/support/users/gleysen/@gleysen](https://wordpress.org/support/users/gleysen/](https://wordpress.org/support/users/gleysen/) for [](https://wordpress.org/support/topic/error-when-loading-2/reporting it](https://wordpress.org/support/topic/error-when-loading-2/](https://wordpress.org/support/topic/error-when-loading-2/). |
| 61 |
|
| 62 |
### 1.3.1 (2022.09.18) |
| 63 |
|
| 64 |
* Fix bugs around the auto-refresh feature. Disabling auto-refresh works only on the toggle and wp_option entry but not on the actual ajax calls. If auto-refresh is enabled, it only worked on clicking the toggle but not on page load. Both issues are fixed. |
| 65 |
|
| 66 |
### 1.3.0 (2022.09.18) |
| 67 |
|
| 68 |
* Implement toast notifications on various action completions, e.g. clearing log file. |
| 69 |
* Change date format to M j, Y - H:i:s, e.g. Dec 31, 2021 - 20:06:34. |
| 70 |
* Implment auto-refresh feature that will automatically load the latest error entries every 5 seconds. |
| 71 |
|
| 72 |
### 1.2.0 (2022.09.16) |
| 73 |
|
| 74 |
* Fix detection of existing debug log file, if there is one, so it is copied correctly into DLM's debug log file. |
| 75 |
* Auto update entries table when logging is enabled, including when copying entries from existing debug.log file. |
| 76 |
* Code refactor: added autoloader of plugin's PHP classes. |
| 77 |
|
| 78 |
### 1.1.0 (2022.09.13) |
| 79 |
|
| 80 |
* Improve implementation of [](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/WP PHP Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/) across the codebase. |
| 81 |
* Improve variable sanitization and escaping. |
| 82 |
* Set initial data table sort based on the # column so that Last Occurence column is properly sorted according to the timestamp. |
| 83 |
* Add get_value() method to WP_Config_Transformer class to work with existing debug log constants in wp-config.php. |
| 84 |
* Enable $options argument for the add() and update() method in WP_Config_Transformer to ensure formatting of debug log constants is correct in wp-config.php. |
| 85 |
|
| 86 |
### 1.0.1 (2022.08.31) |
| 87 |
|
| 88 |
* Refactor code for better organization and maintainability. |
| 89 |
* Improve plugin description / README.md. |
| 90 |
|
| 91 |
### 1.0.0 (2022.08.29) |
| 92 |
|
| 93 |
* Initial stable release. |