Title: Samudra Log
Author: wakamin
Published: <strong>July 21, 2020</strong>
Last modified: June 5, 2021

---

Search plugins

![](https://ps.w.org/samudra-log/assets/banner-772x250.png?rev=2343854)

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.

![](https://ps.w.org/samudra-log/assets/icon-256x256.png?rev=2343854)

# Samudra Log

 By [wakamin](https://profiles.wordpress.org/wakamin/)

[Download](https://downloads.wordpress.org/plugin/samudra-log.1.0.2.zip)

 * [Details](https://sa.wordpress.org/plugins/samudra-log/#description)
 * [Reviews](https://sa.wordpress.org/plugins/samudra-log/#reviews)
 * [Development](https://sa.wordpress.org/plugins/samudra-log/#developers)

 [Support](https://wordpress.org/support/plugin/samudra-log/)

## Description

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.

## FAQ

### 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’).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ wakamin ](https://profiles.wordpress.org/wakamin/)

[Translate “Samudra Log” into your language.](https://translate.wordpress.org/projects/wp-plugins/samudra-log)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/samudra-log/), check
out the [SVN repository](https://plugins.svn.wordpress.org/samudra-log/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/samudra-log/) by
[RSS](https://plugins.trac.wordpress.org/log/samudra-log/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.2

 * Support WordPress 5.7.2.

#### 1.0.1

 * Support WordPress 5.5.1.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.2**
 *  Last updated **5 वर्षाः ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **5.7.15**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/samudra-log/)
 * Tags
 * [debugging](https://sa.wordpress.org/plugins/tags/debugging/)[logging](https://sa.wordpress.org/plugins/tags/logging/)
 *  [Advanced View](https://sa.wordpress.org/plugins/samudra-log/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/samudra-log/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/samudra-log/reviews/)

## Contributors

 *   [ wakamin ](https://profiles.wordpress.org/wakamin/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/samudra-log/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/wakamin)