[WordPress] 外掛分享: Ferret

首頁外掛目錄 › Ferret
10+
安裝啟用
尚無評分
2194 天前
最後更新
問題解決
WordPress 3.0.1+ PHP 7.1+ v2.1.0 上架:2019-01-10

內容簡介

Ferret 是對 Sentry PHP 和 JavaScript SDK 的簡單封裝外掛。它會捕捉所有 PHP 錯誤,如果選項被打開,還會捕捉 JavaScript 錯誤。它有意使用 Sentry 的遺留 PHP 庫,以最大程度提高相容性。最新的 SDK 需要 PHP^7.1,而遺留的最低版本要求是 5.6。

您可以調整四個設置。

DSN – 您的 DSN 金鑰,這是必需的
Project ID – 專案金鑰,也是必需的
啟用 JavaScript 日誌記錄 – 啟用 JavaScript 錯誤記錄
忽略 WP Core 錯誤 – 防止將起源於 WordPress 核心(wp-admin、wp-includes)的事件發送到 Sentry
Debug 環境 – 切換 Sentry 環境為 Debug,關閉此選項會將環境切換為 Production

這三個設置都可在外掛設置頁面 設置 -> Ferret 設置 中進行訪問。

未來,我們將添加選擇性忽略特定主題或外掛的功能。我們還希望公開一個內部 API,供其他外掛/主題捕捉錯誤或添加上下文。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.0) 或搜尋安裝

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

原文外掛簡介

Ferret is a simple wrapper for the Sentry PHP and JavaScript SDKs. It will catch all PHP errors, as well as JavaScript errors if the option is switched on. It utilizes the legacy PHP library by Sentry intentionally, in an effort to maximize compatibility. The newest SDK requires PHP^7.1 whereas the legacy requires minimum of 5.6
There are four settings that you can adjust.

The DSN – Your DSN key, this is required
Project ID – The project key, this is also required
Enable JavaScript Logging – Enable logging of JavaScript errors
Ignore WP Core Errors – Prevent sending events to Sentry that originate from WordPress core (wp-admin, wp-includes)
Debug Environment – Switch the Sentry environment to Debug, turning this off puts the environment to Production

All three are accessible on the plugin settings page located in the Settings -> Ferret Settings page.
In the future we will add the ability to selectively ignore specific themes or plugins in a convenient way. We would also like to expose an internal API that can be used by other plugins/themes to capture errors or add context.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon