Linux 软件免费装
Banner图

Samudra Log

开发者 wakamin
更新时间 2021年6月5日 23:53
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 5.7
版权: GPLv2 or later
版权网址: 版权信息

标签

logging debugging

下载

1.0.0 1.0.1 1.0.2

详情介绍:

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.

升级注意事项:

1.0.2
  • Support Wordpress 5.7.2.
1.0.1
  • Support Wordpress 5.5.1.
1.0.0 Initial release.

常见问题:

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

更新日志:

1.0.2 1.0.1 1.0.0