Title: WP Debug Logger
Author: Donncha O Caoimh (a11n)
Published: <strong>جولائی 26, 2011</strong>
Last modified: دسمبر 9, 2016

---

پلگ انز تلاش کریں

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

![](https://s.w.org/plugins/geopattern-icon/wp-debug-logger.svg)

# WP Debug Logger

 منجانب [Donncha O Caoimh (a11n)](https://profiles.wordpress.org/donncha/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/wp-debug-logger.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/wp-debug-logger/#description)
 * [جائزے](https://ur.wordpress.org/plugins/wp-debug-logger/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/wp-debug-logger/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/wp-debug-logger/#developers)

 [معاونت](https://wordpress.org/support/plugin/wp-debug-logger/)

## تفصیل

This plugin logs the activity of supported plugins to a file, making it easier to
figure out why there’s a problem.

If you have been asked to install this plugin because of a support issue then installing
this plugin is just like installing any other plugin. Once installed, go to Settings-
>WP Logger and enable logging. If you have a number of supported plugins enable 
the one you are interested in.

Developers who want to use this plugin to add logging to their own plugin should
see the Developers section of this documentation.

Mark Jaquith’s [Monitor Pages](https://wordpress.org/extend/plugins/monitor-pages/)
plugin was used as a template for this plugin. Thanks Mark!

#### Developers

Other plugins can use this plugin to record important events which are then dumped
to a log file. Plugins must add the event to a global array in the following way:

    ```
    $GLOBALS[ 'wp_log' ][ 'name_of_plugin' ][] = 'Some important event';
    ```

Plugins must also add themselves to a list of enabled plugins. This will make it
easier for blog owners to filter out which plugin they want to debug on the settings
page. Add and edit the following code so it is executed when the plugin is loaded.

    ```
    $GLOBALS[ 'wp_log_plugins' ][] = 'name_of_plugin';
    ```

A hypothetical example might be a plugin (let’s call it "Big A”) that uses the output
buffer to change the letter "a” to "A”. The events recorded by this might include
the following:

    ```
    $GLOBALS[ 'wp_log' ][ 'big_a' ][] = 'Created output buffer';
    $GLOBALS[ 'wp_log' ][ 'big_a' ][] = 'Output buffer callback';
    $GLOBALS[ 'wp_log' ][ 'big_a' ][] = 'Replaced a with A in page';
    ```

This plugin takes the "wp_log” array and dumps it to a file in the upload directory
of the blog it’s activated on. The file is linked from the plugin settings page 
and can be deleted on that page too. The file is a simple text file and is not protected
in any way so be careful if auth cookies are logged by a plugin.

A "log” function isn’t included but if you want to add one to your plugin check 
the constant WP_DEBUG_LOG is defined before adding to the log array. If your plugin
doesn’t use a class make sure that you call the log function a unique name so it
doesn’t conflict with other plugins.

    ```
    function log( $message ) {
        if ( defined( 'WP_DEBUG_LOG' ) )
            $GLOBALS[ 'wp_log' ][ 'name_of_plugin' ][] = $message;
    }
    ```

## انسٹالیشن

 1. Upload the `wp-debug-logger` folder to your `/wp-content/plugins/` directory
 2. Activate the "WP Debug Logger” plugin in your WordPress administration interface
 3. Go to Settings → WP Debug Logger as an Administrator to get started

## جائزے

There are no reviews for this plugin.

## شراکت دار اور ڈیویلپرز

“WP Debug Logger” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ 
لیا:

شراکت دار

 *   [ Donncha O Caoimh (a11n) ](https://profiles.wordpress.org/donncha/)
 *   [ Automattic ](https://profiles.wordpress.org/automattic/)

[“WP Debug Logger” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/wp-debug-logger)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/wp-debug-logger/)، [ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/wp-debug-logger/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/wp-debug-logger/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/wp-debug-logger/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

#### 0.1

Initial Release

## میٹا

 *  Version **0.1**
 *  Last updated **9 سال پہلے**
 *  Active installations **10+**
 *  WordPress version ** 2.9.2 یا اس سے جدید **
 *  Tested up to **4.7.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-debug-logger/)
 * Tags
 * [debug](https://ur.wordpress.org/plugins/tags/debug/)[development](https://ur.wordpress.org/plugins/tags/development/)
   [log](https://ur.wordpress.org/plugins/tags/log/)[php](https://ur.wordpress.org/plugins/tags/php/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/wp-debug-logger/advanced/)

## درجہ بندیاں

No reviews have been submitted yet.

[میرا جائزہ شامل کریں](https://wordpress.org/support/plugin/wp-debug-logger/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-debug-logger/reviews/)

## شراکت دار

 *   [ Donncha O Caoimh (a11n) ](https://profiles.wordpress.org/donncha/)
 *   [ Automattic ](https://profiles.wordpress.org/automattic/)

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/wp-debug-logger/)