[WordPress] 外掛分享: Debug Logger

首頁外掛目錄 › Debug Logger
全新外掛
安裝啟用
尚無評分
1780 天前
最後更新
問題解決
WordPress 5.7+ PHP 7.4+ v0.3.0 上架:2021-04-29

內容簡介

隨著 PHP 的發展,WordPress 也必須跟上時代的脈動。這個外掛可幫助WordPress 使用現代 PHP 的工具。Monolog 是 PHP 最受歡迎的日誌套件之一,也是 composer 套件的一部分。由於 WordPress 目前還沒有一套普遍可行的方式來支援 composer,因此這個 WordPress 外掛的目的就是要開始拉近這個差距。此紀錄器符合 PSR-3 標準,這是一個 PHP 標準,也是 Monolog 所使用的標準。

日誌級別

有 8 種不同的日誌級別,根據 RFC 5424 定義,這些級別從最嚴重到最輕微按照下列順序列出:

緊急:系統無法使用
警戒:必須立即採取行動
嚴重:嚴重情況
錯誤:錯誤情況
警告:警告情況
提示:正常但重要的狀況
資訊:資訊性訊息
除錯:除錯級別訊息

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.0) 或搜尋安裝

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

原文外掛簡介

As PHP moves forward, so must WordPress. This plugin helps WordPress use the tools of modern PHP. Monolog — PHP’s most popular logging package — is a composer package. Since WordPress doesn’t currently have a universal way to support composer, this WordPress plugin is meant to start bridging the gap. This logger is PSR-3 compliant, a PHP standard which Monolog also uses.
Logging Levels
There are 8 logging levels available, defined by RFC 5424. The levels specified in
order from the most severe to the least severe:

Emergency: system is unusable
Alert: action must be taken immediately
Critical: critical conditions
Error: error conditions
Warning: warning conditions
Notice: normal but significant condition
Info: informational messages
Debug: debug-level messages

延伸相關外掛

文章
Filter
Apply Filters
Mastodon