內容簡介
這個外掛提供了一個方便的除錯工具,可以在 Safari、Firefox(使用 firebug)和 Opera(使用新版 Dragonfly) 的瀏覽器控制台中顯示 PHP 的日誌訊息。這對於插件和佈景主題開發人員來說是一個不可或缺的工具。你不再需要使用 PHP 中的 ‘print_r’ 命令來找出程式碼出了什麼問題,而這種方式更容易破壞 DOM 和 HTML 佈局。此外,這個外掛還可以以漂亮的方式顯示複雜的 PHP 結構,如陣列和物件。
功能
從佈景主題和插件中直接記錄除錯訊息。
在瀏覽器控制台中顯示日誌訊息,不會影響瀏覽器的顯示。
以漂亮的方式顯示複雜的結構,如陣列和物件。
顯示記錄訊息的行號和檔案(你不會失去對記錄語句的跟蹤)。
有關更多資訊、意見和功能請求,請造訪外掛首頁。
鳴謝
強制 wplogger 外掛優先載入的程式碼是參考了由 Ivan Weiller 開發的 WordPress FirePHP 外掛的方法。
此外掛是基於 PEAR Log 開發的,它是 PHP PEAR 函式庫中的一個日誌框架。現任維護者為Jon Parise、Jan Schneider和Chuck Hagenbuch。PEAR Log 是基於 Horde 1.3 框架的原始程式碼開發而成,作者為Chuck Hagenbuch和Jon Parise。
發行說明
0.3:新增對 Opera 的支援;
0.2.2:修正 readme.txt 檔案的格式問題;
0.2.1:新增更多的細節在 readme.txt 檔案中;
0.2:第一個正式的公開版本;
0.1:第一個內部版本。
外掛標籤
開發者團隊
原文外掛簡介
Display log messages from PHP in the browser console in Safari, Firefox (with firebug), and Opera (with the new Dragonfly debugging environment). Essential debugging tool for
plugin and theme developers. You no longer have to use ‘print_r’ statements from PHP to figure out what is going
on in the code, which more often than not, messes up the DOM and HTML layout. Displays complex PHP structures like arrays and objects
in pretty print.
Features
Log debug messages directly from themes and plugins.
Display log messages in the browser console, without muddying up the browser display.
Displays complex structures such as arrays and objects in pretty print.
Shows the line number and file from where the message was logged ( you won’t lose track of log statements ).
For more info, comments, and feature requests, visit the plugin homepage.
Credits
Code that forces the wplogger plugin to load first was adapted from the WordPress
FirePHP plugin
developed by Ivan Weiller.
This plugin is based on PEAR Log, the logging framework that is part of the
PHP PEAR library. Current maintainers Jon Parise, Jan Schneider, and Chuck Hagenbuch. PEAR Log is based on code first
developed for the Horde 1.3 framework – original authors Chuck Hagenbuch, and Jon Parise.
Release Notes
0.3 : Added support for Opera ;
0.2.2 : Fixed formatting issues in readme.txt file;
0.2.1 : Added more detail to the readme.txt file;
0.2 : First official public release;
0.1 : First internal release;
