跳到内容

Debug Logger

v0.3.0

Andrew Woods · 2021年4月30日 上架

Provide a PSR-3 compatible logger for WordPress core that writes to the debug.log

正在使用
10 以下
评分
暂无
累计下载
1,255
最近更新
2021年5月4日
需要 WordPress 5.7+已测试到 5.7.22PHP 7.4+

贡献者

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums