[WordPress] 外掛分享: Custom Error Log

首頁外掛目錄 › Custom Error Log
WordPress 外掛 Custom Error Log 的封面圖片
50+
安裝啟用
★★★★★
5/5 分(5 則評價)
4165 天前
最後更新
問題解決
WordPress 3.0.1+ v1.1.1 上架:2014-10-21

內容簡介

Custom Error Log 可以讓你在你的 WordPress 主題或外掛中使用一個簡單的功能創建自定義錯誤。非常適用於調試冗長和複雜的腳本。

每個錯誤都可以有自己的錯誤消息,這使得定位代碼中特定問題變得更加容易。你也可以記錄提醒以處理一些不太重要的問題。

你可以在 WordPress 管理區域中方便地查看所有錯誤和提醒。

外掛功能:

易於使用:使用簡單的功能創建錯誤。
有用的錯誤:為每個錯誤定義自定義錯誤消息。
記錄提醒:可以記錄提醒以處理較不重要的問題,並在管理區域中單獨查看。
跟踪:在 WordPress 管理區域中查看和管理所有錯誤。
工具欄圖標:管理工具欄顯示了當前頁面上發生的新錯誤和提醒的數量。

開始使用:

安裝並啟用插件,然後在管理菜單中轉到 工具 > 错误日志。這最終將是顯示所有最新錯誤的頁面,但如果您剛開始,它會詳細說明如何開始記錄自定義錯誤。

在你的主題中使用兩個內置功能之一 log_error($message); 或提醒 log_notice($message); 來記錄錯誤。

當執行這些功能時,它們將記錄想要的任何錯誤或提醒。

持續開發:

我剛剛開始使用這個外掛,並計劃將其改進。如果你有任何想法,請在支持部分提出建議。

翻譯:

此外掛支持多語言,但目前僅包含英語翻譯文件。如果您想貢獻任何翻譯,我將非常感激。

請注意:

此外掛針對具有至少基本 PHP 知識的開發人員。如果你不是這樣的開發人員,你可能無法從這個外掛中獲得太多幫助,但如果你不知道如何使用任何解釋的功能,你可以在外掛目錄的支持部分發帖,我將盡力幫助你。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

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

原文外掛簡介

Custom Error Log allows you to create custom errors in your WordPress theme or plugin with a single function. Great for debugging those long and complex scripts.
Each error can have its own error message making it a lot easier to pin down specific issues in your code. You can also log notices for less serious issues.
All your errors and notices can be viewed conveniently in the WordPress admin area.
Plugin Features:

Easy Errors: Create errors with a simple function.
Useful Errors: Define a custom error message for each error.
Log notices: Notices can be logged for less serious issues and viewed seperately in the admin area.
Keep Track: View and moderate all your errors in the WordPress admin area.
Toolbar icon: The admin toolbar displays how many new errors and notices have occurred on the current page.

Getting Started:
Install and activate the plugin then in the admin menu go to Tools > Error Log. This will eventually be the page that displays all your latest errors but if you’re just getting started it explains in detail how to start logging custom errors.
In your theme use either of the two built in functions to log an error log_error($message); or a notice log_notice($message);.
When these functions are executed they will log whatever error or notice you want.
Ongoing Development:
I have only just started with this plugin and plan on bringing great improvements to it. If you have any ideas please suggest them in the support section.
Translation:
The plugin is translation ready but as of yet contains only an English translation file. If you would like to contribute any translations I would be very grateful.
Please note:
This plugin is aimed at developers who have at least a basic understanding of PHP. If this isn’t you then you may not find much use from this plugin however if you are unsure how to use any of the functions explained you can post a topic in the support section of the plugin directory and I will do my best to help you.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon