SearchWP

searchwp\debug\dir

Since: 4.0.0

Table of Contents

Modify where debug logs are stored.

Parameters

Type Parameter Default Since
String $dir searchwp-logs within the defined uploads directory 4.0.0

Examples

All hooks should be added to your custom SearchWP Customizations Plugin.

Change the debug log directory

<?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';
} );

How to use this code