這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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
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.

常見問題

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.

貢獻者及開發者

“Samudra Log” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Samudra Log 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.2

  • Support WordPress 5.7.2.

1.0.1

  • Support WordPress 5.5.1.

1.0.0

  • Initial release.