Title: Ferret
Author: Leap Spark
Published: <strong>2019 年 1 月 11 日</strong>
Last modified: 2020 年 3 月 16 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/ferret/assets/icon-256x256.png?rev=2115753)

# Ferret

 由 [Leap Spark](https://profiles.wordpress.org/leapspark/) 開發

[下載](https://downloads.wordpress.org/plugin/ferret.2.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/ferret/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/ferret/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/ferret/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/ferret/#developers)

 [技術支援](https://wordpress.org/support/plugin/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.

## 安裝方式

 1. Upload `wordpress-sentry.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the settings page through `Settings -> Ferret Settings` and enter your Sentry
    DSN and Project ID

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Ferret〉的開發相關工作。

參與者

 *   [ Leap Spark ](https://profiles.wordpress.org/leapspark/)

[將〈Ferret〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/ferret)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/ferret/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/ferret/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/ferret/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/ferret/)。

## 變更記錄

#### 2.1.0

 * Fix JavaScript script element tag
 * Upgrade JavaScript SDK to 5.14

#### 2.0.0

 * Complete overhaul of plugin structure
 * Now requires PHP^7.1
 * Add Sentry Unified SDK

#### 1.2.6

 * Add WordPress.org assets

#### 1.2.5

 * Adding Github Actions workflow

#### 1.2.4

 * Remove ?? operators
 * Fix PHP version error notice to reflect 5.6 requirement
 * Code formatting

#### 1.2.3

 * Fix the required PHP version
 * Fix typos in README

#### 1.2.0

 * Documentation
 * Remove PHP7 features, specifically null coalesce operators
 * Downgrade minimum PHP version to 5.6
 * Add error handling to Sentry initialization

#### 1.1.6

 * Documentation

#### 1.1.5

 * Fix some issues related to file naming
 * Sort out some kinks with adjusting to svn workflow

#### 1.0.0

 * Initial commit

## 中繼資料

 *  版本 **2.1.0**
 *  最後更新 **6 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.3.23**
 *  PHP 版本需求 ** 7.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/ferret/)
 * 標籤:
 * [debugging](https://tw.wordpress.org/plugins/tags/debugging/)[error handling](https://tw.wordpress.org/plugins/tags/error-handling/)
   [errors](https://tw.wordpress.org/plugins/tags/errors/)[logging](https://tw.wordpress.org/plugins/tags/logging/)
   [sentry](https://tw.wordpress.org/plugins/tags/sentry/)
 *  [進階檢視](https://tw.wordpress.org/plugins/ferret/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/ferret/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/ferret/reviews/)

## 參與者

 *   [ Leap Spark ](https://profiles.wordpress.org/leapspark/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/ferret/)