跳到内容

Samudra Log

v1.0.2

wakamin · 2020年7月21日 上架

Write log for debugging Wordpress site.

正在使用
10 以下
评分
暂无
累计下载
1,192
最近更新
2021年6月5日
需要 WordPress 4.7+已测试到 5.7.22PHP 7.0+

贡献者

截图

Plugin settings page.
Plugin settings page.

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums