[WordPress] 外掛分享: Gigaom Slog

前言介紹

  • 這款 WordPress 外掛「Gigaom Slog」是 2014-04-07 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2014-04-08,距離現在已有 4043 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.6.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

methnen | zbtirrell |

外掛標籤

logging | amazon simple db |

內容簡介

透過 Amazon Simple DB 紀錄事件的外掛程式(需要Gigaom Simple DB)。

最初我們是為了在無法存取伺服器上的 PHP 錯誤日誌且無法在本機上重現錯誤時,能夠紀錄錯誤代碼,但隨著時間的推移,我們也發現它在其他幾個案例中也很實用。

以下是我們的短名單(您可能會想到更多):

需要紀錄錯誤但沒有伺服器上的錯誤日誌管理權限。
需要在兩個運行相關程式碼的不同伺服器之間記錄一個統一的日誌。

在我們的情況下,我們有兩個相互溝通的伺服器,需要一個統一的視圖來查看它們的對話。

需要紀錄罕見的錯誤,但又不想翻閱數月的錯誤日誌檔案。

使用方法

透過過濾 go_config 鉤子來設定配置資訊,當第二個過濾器屬性為go-slog時,傳回一個Amazon Simple DB憑證陣列。

array(
'aws_access_key' => 'YOUR_KEY',
'aws_secret_key' => 'YOUR_SECRET',
'aws_sdb_domain' => 'YOUR_SDB_DOMAIN',
);
SDB Domain 值類似於 SQL 資料表。它是你的日誌項目寫入的空間。如果 SDB Domain 尚不存在,Gigaom Simple DB會為您建立它。
參見Amazon Simple DB 入門指南以瞭解更多有關取得 Key 和 Secret 值的資訊。

紀錄項目:apply_filters( 'go_slog', $code, $message, $data );

$code – 一些錯誤代碼字串(例如警告、錯誤、錯誤類型1等)
$message – 一些錯誤訊息(例如嘗試聯繫端點失敗。)
$data – 在調試期間有用的數據陣列(例如:array('post_id' => 131, 'post_title' => 'Test Post'))

注意: Amazon Simple DB 值有1024位元組大小限制。
注意:我們目前沒有透過 Amazon 建議的指數退後方法來重試,因此在短時間內有太多寫入 slog 的嘗試可能會觸發 Amazon SDB 的 ServiceUnavailable 回應。 根據我們的經驗,這沒有造成太大的問題,但仍在我們需要完善的待辦事項清單上。

查看 slog:/ wp-admin / tools.php?page = go-slog-show

slog 可以分頁顯示,一次最多可以顯示 1000 項(SDB 有 1000 項查詢限制)。
slog 項目也可以匯出為 CSV。
如果您需要清除 Slog,也可以從管理面板中進行操作。

貢獻

此外掛程式是在GitHub 上進行開發。歡迎貢獻和提出問題!

原文外掛簡介

A way to log occurances to an Amazon Simple DB (requires Gigaom Simple DB).
We originally created this to allow us to log errors in our code when we weren’t able to access the PHP error logs on the server and weren’t able to reproduce them locally. However, since then we’ve found it useful in a few other cases as well.
Here’s our short list (you may be able to think of more):

When you need to log errors but don’t have admin access to the error logs on the server.
When you need a cosolidated log between two different servers that are running related code.

In our case we had two servers talking to each other and needed a view into how that conversation was going in a consolidated fashion.

When you have a rare error that you need to log but don’t want to dig through months of error log files.

Usage

Set config info by filtering the go_config hook and returning an array of Amazon Simple DB credentials when the second filter attribute is go-slog.

array(
'aws_access_key' => 'YOUR_KEY',
'aws_secret_key' => 'YOUR_SECRET',
'aws_sdb_domain' => 'YOUR_SDB_DOMAIN',
);
The SDB Domain value is analagous to an SQL Table. It’s the space where your log items will be written to. If the SDB Domain doesn’t exist yet Gigaom Simple DB will create it for you.
See: Amazon Simple DB Getting Started Guide for more information on getting your Key and Secret values.

Log items: apply_filters( 'go_slog', $code, $message, $data );

$code – Some error code string (e.g. warning, error, error-type-1, etc…)
$message – Some error message (e.g. Attempt to contact the endpoint failed.)
$data – An array of data that will be helpful in debugging (e.g. array( 'post_id' => 131, 'post_title' => 'Test Post' ))

Note: Amazon Simple DB values have a 1024 byte size limit.
Note: we currently have no method for doing an exponentional backoff as suggested by Amazon so too many attempts to write to the slog in a short amount of time can trigger ServiceUnavailable responses from Amazon SDB. In our experience this hasn’t been much of a problem but it’s on our to do list of things to improve.

View Slog: /wp-admin/tools.php?page=go-slog-show

Slogs can be paged through with up to 1000 items at a time (SDB has a 1000 item query limit)
Slog items can also be exported to CSV.
If you need to clear out your Slog you can do that from the admin panel as well.

Contributing
This plugin is developed and available on GitHub. Contributions and questions are welcome!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Gigaom Slog」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Check & Log Email – Easy Email Testing & Mail logging 》需要一個工具,讓你可以輕鬆地記錄和查看 WordPress 發送的所有電子郵件嗎? Check & Log 可能就是此問題的解決方案。, 此 WordPress 外掛可幫助你為審計目的...。
  • Mail logging – WP Mail Catcher 》這個 WordPress 外掛能夠記錄你的郵件,讓你不再有遺失郵件的困擾!這個快速、輕量級的外掛(不到 140kb)也可以用於調試或備份你的訊息。, 只需安裝和啟用,...。
  • WordPress Sentry 》此外掛可選擇性地報告 PHP 錯誤和 JavaScript 錯誤至 Sentry,同時與其發布追蹤整合。, 它會自動偵測已驗證的使用者並在可能的情況下加入內容。所有內容/標籤...。
  • WP-Cron Status Checker 》如果 WP-Cron 停止運作,會發生什麼事情?, WordPress、佈景主題和外掛都不會知道是否有新版本推出。您可能每天登錄您的網站數月,但從不會看到任何有關更新...。
  • Log Emails 》將電子郵件記錄到 WordPress 資料庫以供日後分析。只有管理員能夠使用,帶有 WordPress 密碼的電子郵件經過模糊化,以確保安全性/私隱。 應用於診斷遺失的電...。
  • DecaLog 》捕捉和記錄網站上的事件、指標和追蹤。讓 WordPress 可見化 - 終於!, 作為 WordPress 的觀察標準堆棧,DecaLog 為 WordPress 核心、PHP、數據庫、插件和主題...。
  • WordPress Error Monitoring by Bugsnag 》Bugsnag 是一個 WordPress 外掛程式,可以自動偵測你的 WordPress 網站上的錯誤和當機問題,並透過電子郵件、聊天或工單系統通知你。, 所有的網站都有可能會...。
  • Log Deprecated Notices 》此外掛會記錄使用到已被棄用的檔案、函式和函式參數。它也能夠辨別被使用到的棄用功能並且會提供可用的替代方法。, 這是專為開發人員所設計的外掛程式。雖然 ...。
  • Plainview Activity Monitor 》Activity Monitor 追蹤您的部落格或網路中所有使用者的活動。您可以在全域資料表中查看整個網路中的活動,或者僅在您目前檢視的部落格中本地檢視這些活動。您...。
  • Trunc Logging – Auditing syslog for WordPress 》The Trunc Logging plugin gives you visibility to all the activity inside WordPress. Logins, logouts, failed logins, new posts, new, plugins, etc. E...。
  • wp2syslog 》使用 wp2syslog 的最終用戶可以獲益:, , 核心事件的日誌記錄有助於跟踪日常業務,特別是對於多用戶博客。, 核心事件的日誌記錄可以提高對威脅和問題(例如濫...。
  • Spark GF Failed Submissions 》, 此外掛需要 Gravity Forms。, , 曾經想過有多少人填寫您的表單時,當他們按下提交鍵時卻遇到錯誤的情況嗎?想要在失敗率陡增時獲得通知嗎?, 這正是我們建...。
  • IP Informant Logger 》以下是對 WordPress 外掛 IP Informant Logger 的介紹摘要:, , - IP Informant Logger 是一個 WordPress 外掛,用於記錄並顯示訪問者的 IP 位址。這工具對於...。
  • Issues Tracker 》使用這個外掛可以方便地查看和搜尋 WordPress 的 Log,並且藉由建議來提升網站的安全性。此外,也可以追蹤網站的 404 錯誤和修改伺服器設定。, 我們設計這個 ...。
  • WordPress Logging Service 》這個外掛提供了一個簡單的 API,用於存儲雜項日誌條目和管理區域中它們的概述(如果在多站點上啟用,則是網路管理區域)。, 為私人使用而開發(被我的其他插...。

文章
Filter
Apply Filters
Mastodon