BACK TO DIRECTORY

Samudra Log

by wakamin

0.0
(0 ratings)

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;
}

Screenshots

Plugin settings page.

Plugin settings page.

Plugin Details

Active Installs
0
Total Downloads
1,104
Version
1.0.2
Requires WP
4.7
Requires PHP
7.0
Tested Up To
5.7.17
Added
2020-07-21
Last Updated
2021-06-05 3:53pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0