searchwp\debug\dir
Depuis : 4.0.0
Table des matières
Modifiez l'emplacement de stockage des journaux de débogage.
Paramètres
| Type | Paramètre | Défaut | Depuis |
|---|---|---|---|
| Chaîne | $dir |
searchwp-logs dans le répertoire uploads défini |
4.0.0 |
Exemples
All hooks should be added to your custom SearchWP Customizations Plugin.
Changer le répertoire du journal de débogage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Change the debug log directory in SearchWP. | |
| add_filter( 'searchwp\debug\dir', function( $dir ) { | |
| // NOTE: Make sure permissions are correct for this directory. | |
| return '/var/logs/searchwp-debug-logs'; | |
| } ); |

