跳到内容

LiKoToN Debug Logs

v2.0.0

likoton · 2026年7月8日 上架

A lightweight debugging plugin that collects PHP, WordPress, REST API and login logs with filters, dark mode, infinite scroll and CSV export.

正在使用
10 以下
评分
暂无
累计下载
566
最近更新
2026年10月31日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Logs tab
Logs tab
Logs tab in dark mode
Logs tab in dark mode
Settings in dark mode
Settings in dark mode

LiKoToN Debug Logs is a lightweight, modern debugging plugin for WordPress that automatically collects:

  • PHP errors and warnings
  • WordPress errors (wp_error_added)
  • REST API requests (route, method, params)
  • User login events
  • Custom logs via Likoton_Debug_Logs_Logger::log()

It includes a clean log viewer with:

  • AJAX live filtering
  • Infinite scroll
  • Client-side sorting
  • Search, level, source and time filters
  • Color-coded badges
  • Dark mode
  • CSV export (with UTC and local timestamps)
  • Automatic cleanup based on retention settings

Perfect for developers, administrators and anyone who needs a clear view of what happens inside WordPress.

Features

Log Collection

  • PHP errors & warnings
  • WordPress errors (wp_error_added)
  • REST API requests (route, method, params)
  • User login events
  • Custom logs via Likoton_Debug_Logs_Logger::log()

Logs Viewer

  • AJAX live filtering
  • Infinite scroll
  • Search, level, source, time
  • Client-side sorting
  • Color-coded badges
  • Responsive table

Dark Mode

  • WordPress 7-style toggle
  • Applies to all plugin pages

Settings

  • Dark mode
  • Log retention (30m 1 month)
  • Capability required to view logs
  • Auto-save via AJAX with toast notification
  • Selectable log levels (only enabled levels are shown in the viewer)

Automatic Cleanup

  • WP-Cron based
  • Configurable retention
  • Table optimization

Export

  • Export all logs to CSV
  • Includes created_at_utc and created_at_local
  • Secured with nonce & capability check

Developer API

Custom logs

`php

Likoton_Debug_Logs_Logger::log( ‘info’, ‘custom_source’, ‘Something happened’, [ ‘extra’ => ‘data’ ] );

Supported log levels (PSR-3 + extended PHP levels):

  • debug,
  • info,
  • notice,
  • warning,
  • error,
  • critical,
  • alert,
  • emergency,
  • deprecated,
  • user_deprecated,
  • strict,
  • parse,
  • core_error,
  • core_warning,
  • compile_error,
  • compile_warning,
  • recoverable_error,
  • user_error,
  • user_warning,
  • user_notice

Plums

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

导航

说明

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

© 2026 Plums