Title: WP_DEBUG_LOG values
Last modified: May 13, 2020

---

# WP_DEBUG_LOG values

 *  Resolved [stilldreaming](https://wordpress.org/support/users/stilldreaming/)
 * (@stilldreaming)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wp_debug_log-values/)
 * Really like your plugin. Noticed a minor bug, which is as follows.
 * In the plugin, where the WP_DEBUG_LOG constant is processed it says:
 * `return defined('WP_DEBUG_LOG') && WP_DEBUG_LOG ? esc_html__('Enabled', 'dashboard-
   widgets-suite') : esc_html__('Disabled', 'dashboard-widgets-suite');`
 * This does not take into account the fact that WP_DEBUG_LOG might be a filename.
 * See here for the explanation:
 * > [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-12835467)
 * Thanks for reporting, will get it fixed up for the next plugin update.
 * Also thank you for the great review, very much appreciated [@stilldreaming](https://wordpress.org/support/users/stilldreaming/)
   🙂
    -  This reply was modified 6 years, 3 months ago by [Jeff Starr](https://wordpress.org/support/users/specialk/).
 *  Thread Starter [stilldreaming](https://wordpress.org/support/users/stilldreaming/)
 * (@stilldreaming)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-12835489)
 * You’re welcome. Great plugin.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-13201056)
 * Hey just to follow up with this, the code in question:
 * `defined('WP_DEBUG_LOG') && WP_DEBUG_LOG ? ...`
 * Returns the correct value for either case: when the value is a path/filename,
   PHP interprets that as “true”, so the code works either way.
 * Unless I am missing something, which certainly is possible this early in the 
   day.
 *  Thread Starter [stilldreaming](https://wordpress.org/support/users/stilldreaming/)
 * (@stilldreaming)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-13205635)
 * Well, in a way you are right. If WP_DEBUG_LOG is true the plugin displays “Enabled”,
   which is correct of course. The log is saved to the default wp-content/debug.
   log. WP_DEBUG_LOG can be set to a filename. If someone does that the plugin displays“
   Enabled”, also quite correct.
 * But…. wouldn’t it be nice that the plugin displays the content of WP_DEBUG_LOG(
   if it is not true or false). It is a case of “Enabled, but storing in the following
   log file…”.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-13206272)
 * Yeah that’s actually a good idea, I will improve the logic to display more accurate
   results in the next plugin update. Thanks for explaining your idea further.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-13641470)
 * Just to follow up, this feature is added in the next version of DWS. Should be
   available soon.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP_DEBUG_LOG values’ is closed to new replies.

 * ![](https://ps.w.org/dashboard-widgets-suite/assets/icon-256x256.png?rev=1471944)
 * [Dashboard Widgets Suite](https://wordpress.org/plugins/dashboard-widgets-suite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dashboard-widgets-suite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dashboard-widgets-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/dashboard-widgets-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dashboard-widgets-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dashboard-widgets-suite/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/wp_debug_log-values/#post-13641470)
 * Status: resolved