This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Samudra Log


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

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


  • Plugin settings page.


Why not just use WP_DEBUG_LOG?

WP_DEBUG_LOG write file into wp-content/debug.log. In this file it also contain any error logs.
This plugin make it easy to see specific logging that we want. And adding custom logging file also easy with sd_log($var, ‘file-name’).


There are no reviews for this plugin.

Contributors & Developers

“Samudra Log” is open source software. The following people have contributed to this plugin.


Translate “Samudra Log” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Support WordPress 5.7.2.


  • Support WordPress 5.5.1.


  • Initial release.