Title: Samudra Log
Author: wakamin
Published: <strong>2020 年 7 月 21 日</strong>
Last modified: 2021 年 6 月 5 日

---

搜索插件

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

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Samudra Log

 作者：[wakamin](https://profiles.wordpress.org/wakamin/)

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

 * [详情](https://cn.wordpress.org/plugins/samudra-log/#description)
 * [评价](https://cn.wordpress.org/plugins/samudra-log/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/samudra-log/#developers)

 [支持](https://wordpress.org/support/plugin/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
    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;
    }
    ```

## 屏幕截图

[⌊Plugin settings page.⌉⌊Plugin settings page.⌉[

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Samudra Log」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Samudra Log」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/samudra-log)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/samudra-log/)，查看[SVN仓库](https://plugins.svn.wordpress.org/samudra-log/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/samudra-log/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/samudra-log/)。

## 更新日志

#### 1.0.2

 * Support WordPress 5.7.2.

#### 1.0.1

 * Support WordPress 5.5.1.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **5.7.15**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/samudra-log/)
 * 标签
 * [debugging](https://cn.wordpress.org/plugins/tags/debugging/)[logging](https://cn.wordpress.org/plugins/tags/logging/)
 *  [高级视图](https://cn.wordpress.org/plugins/samudra-log/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/samudra-log/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/samudra-log/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/wakamin)