內容簡介
這個外掛提供了一個 API 可以透過 FirePHP 或電子郵件來發送記錄和除錯資料。它提供了三個記錄功能(wp_yalp_info、wp_yalp_warning、wp_yalp_error)和三個記錄等級:錯誤、警告、資訊。在外掛初始化後,您可以在您的程式碼中調用這些函數,以將您的資料發送到日誌系統。這些函數接收兩個參數:必需的第一個是您要記錄的物件(字串、陣列等等),第二個可選的插件是標籤,用於識別您的日誌資料。
如果當前使用者是管理員或其 IP 地址已啟用以接收它,則日誌資料將自動透過 FirePHP 系統發送。如果已配置,該外掛還會將日誌資料通過電子郵件發送給網站管理員。
此外,此外掛還提供了一些可選的自動日誌:資料庫查詢、電子郵件和文章元資料。
外掛標籤
開發者團隊
原文外掛簡介
This plugin provides an API to send logging and debugging data via FirePHP or
via e-mail.
It provides 3 logging functions (wp_yalp_info, wp_yalp_warning, wp_yalp_error) for 3 log levels: error, warning, info. You can call these functions in your code (after plugin initialization) to send your data to the logging system. These functions receive 2 parameters: the first one, mandatory, is the object that you want to log (string, array, etc.) and the second optional plugin is a label to identify your log data.
The log data is automatically sent via the FirePHP system if the current user is the administrator or his IP address is enabled to receive it. If configured, the plugin also sends the log data via e-mail to the website administrator.
This plugin also provides some optional automatic logs for database queries, e-mail
and posts meta.
