This plugin is outdated and might not be supported anymore
Samudra Log

Samudra Log

By Kasmin
Details
View on WordPress

Write log for debugging WordPress site.

How to Use?

Use this function to write log.

// Variable value can be string, array, or object
$variable = 'Variable value';

// Log file will be in /wp-content/plugins/samudra-log/log/sd_log.log
sd_log($variable);

// Log file will be in /wp-content/plugins/samudra-log/log/my-file.log
sd_log($variable, 'my-file');

Restrict direct access to log file

If you are using Nginx, put this code inside your server block.

location ~ /wp-content/plugins/samudra-log/log/.*\.log$ {
    deny all;
    return 404;
}

Details

Plugin code:
samudra-log
Plugin version:
1.0.2
Author:
Outdated:
Yes
WP version:
4.7 or higher
PHP version:
7.0 or higher
Test up to WP version:
5.7.12
Total installations:
0
Last updated:
2021-06-05
Rating:
Times rated:
0
debugging
logging