[WordPress] 外掛分享: Change Debug Log Location

首頁外掛目錄 › Change Debug Log Location
WordPress 外掛 Change Debug Log Location 的封面圖片
10+
安裝啟用
尚無評分
103 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.6+ v0.0.2 上架:2021-02-24

內容簡介

通常情況下,如果 debug 功能啟用,則 debug.log 文件位於 wp-content 文件夾中,並且任何人都可以在 https://your-domain.com/wp-content/debug.log/ 上讀取它。
啟用 “更改 debug 文件位置” 插件後,您將在主目錄中找到 debug.log 文件,但它將具有類似 debug-6583fb9c.log 的名稱。
因此,只有知道該名稱的人才能找到它。
停用該插件不會刪除 debug 文件,因為我們希望您不會失去任何信息,當然您可以通過 FTP 手動刪除它。
此外,在停用該插件後,debug 功能將被禁用。如果您需要它,則應在 wp-config.php 中重新啟用它。
當然,如果 debug 功能已禁用,因為您不需要它(這是 WordPress 的默認值),則您也不需要此插件。此插件僅適用於需要讀取 debug.log 文件但不希望所有人都能讀取它的人。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Change Debug Log Location」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Normally, if the debug is active, the file debug.log is included in the folder wp-content, and everybody can read it at https://your-domain.com/wp-content/debug.log/.
Activating Change Debug Log Location you will find the debug.log file in the main directory, but it will have a name that looks like debug-6583fb9c.log.
So only those who know the name will be able to find it.
Deactivating the plugin it will not delete the debug file, because we don’t want you lose any information, of course you can delete it manually via FTP.
Moreover, after deactivating the plugin the debug will be disabled. If you need it, you should enable it again in wp-config.php.
Of course, if the debug is disabled because you don’t need it (the default of WordPress), you also don’t need this plugin. This plugin is only for those who need to read the debug.log file, but they don’t want everybody can read it.
Help
If you need help open a thread on the support forum of this plugin.
Please, before posting enable the debugging in wp-config.php. Need a step-by-step guide? Read this detailed tutorial on how to enable debugging in WordPress to learn more.

文章
Filter
Apply Filters
Mastodon