Write log for debugging WordPress site.
Author: | Kasmin (profile at wordpress.org) |
WordPress version required: | 4.7 |
WordPress version tested: | 5.7.2 |
Plugin version: | 1.0.2 |
Added to WordPress repository: | 21-07-2020 |
Last updated: | 05-06-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://www.samudradigital.com |
Total downloads: | 243 |
Click to start download |
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
FAQ
ChangeLog