Title: WP Debug Logger
Author: Donncha O Caoimh (a11n)
Published: <strong>Agẹmọ  26, 2011</strong>
Last modified: Ọ̀pẹ  9, 2016

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# WP Debug Logger

 Láti ọwọ́ [Donncha O Caoimh (a11n)](https://profiles.wordpress.org/donncha/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/wp-debug-logger.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/wp-debug-logger/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/wp-debug-logger/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/wp-debug-logger/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/wp-debug-logger/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-debug-logger/)

## Àpèjúwe

This plugin logs the activity of supported plugins to a file, making it easier to
figure out why thereÌtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’t use a class make sure that you call the log
function a unique name so it doesnÌtumọ̀ Yorùbá: ’t conflict with other plugins.

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

## Ìgbéwọlẹ̀

 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

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“WP Debug Logger” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “WP Debug Logger” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/wp-debug-logger)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/wp-debug-logger/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/wp-debug-logger/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/wp-debug-logger/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/wp-debug-logger/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 0.1

Initial Release

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 10 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 2.9.2 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **4.7.33**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/wp-debug-logger/)
 * Àwọn àmì
 * [debug](https://yor.wordpress.org/plugins/tags/debug/)[development](https://yor.wordpress.org/plugins/tags/development/)
   [log](https://yor.wordpress.org/plugins/tags/log/)[php](https://yor.wordpress.org/plugins/tags/php/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/wp-debug-logger/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/wp-debug-logger/reviews/#new-post)

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

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-debug-logger/)