Title: Custom Logs
Author: Byron Jacobs
Published: <strong>2025 年 5 月 7 日</strong>
Last modified: 2025 年 5 月 27 日

---

搜索插件

![](https://ps.w.org/custom-logs/assets/banner-772x250.png?rev=3289348)

![](https://ps.w.org/custom-logs/assets/icon-256x256.png?rev=3289348)

# Custom Logs

 作者：[Byron Jacobs](https://profiles.wordpress.org/heavyweightdigital/)

[下载](https://downloads.wordpress.org/plugin/custom-logs.zip)

 * [详情](https://cn.wordpress.org/plugins/custom-logs/#description)
 * [评价](https://cn.wordpress.org/plugins/custom-logs/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/custom-logs/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/custom-logs/#developers)

 [支持](https://wordpress.org/support/plugin/custom-logs/)

## 描述

Custom Logs is a powerful and user-friendly plugin designed to help WordPress developers
and administrators manage debug logs efficiently. With a modern interface, it offers
complete control over custom and WP_DEBUG logs, including custom directories, log
levels, and real-time AJAX filtering.

### Key Features

 * **Custom Log Management**: Define custom log file names and directories within
   the uploads folder.
 * **WP_DEBUG Integration**: Capture and redirect WP_DEBUG logs to a custom file.
 * **Log Levels**: Filter logs by severity (None, All, Errors, Warnings, Notices).
 * **AJAX-Powered Log Viewer**: Dynamically filter log entries by file and type 
   without page reloads.
 * **Backup and Clear Logs**: Easily back up or clear logs with a single click.
 * **Download Logs**: Download custom or WP_DEBUG logs directly from the admin panel.
 * **Sleek UI**: A modern, responsive design with uniform input heights for a polished
   experience.

This is the initial release (v1.0), providing a robust foundation for log management
with advanced features like AJAX filtering built-in from the start.

### Usage

 1. **Enable Logging**: Turn on custom logging and set a log level under “Custom Logging”.
 2. **Set Log Files**: Specify custom log file names and directories under “General”
    and “WP Debug Logging”.
 3. **View Logs**: Use the Log Viewer to select a log file and filter by type (e.g.,
    Errors, Info) with real-time AJAX updates.
 4. **Manage Logs**: Test, clear, back up, or delete logs from the “Management” section.
 5. **Download Logs**: Use the “Downloads” section to save logs locally.

To log custom messages, use the `custom_logs()` function in your code:
 `php customdebug_log(“
This is a test message”, “info”);

## 安装

 1. Upload the `custom-debug-logs` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Navigate to the ‘Custom Logs’ menu in the WordPress admin dashboard to configure
    settings.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Custom Logs」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Byron Jacobs ](https://profiles.wordpress.org/heavyweightdigital/)

[帮助将「Custom Logs」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-logs)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/custom-logs/)，查看[SVN仓库](https://plugins.svn.wordpress.org/custom-logs/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/custom-logs/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/custom-logs/)。

## 额外信息

 *  版本 **1.1**
 *  最后更新：**1 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.8 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-logs/)
 * 标签
 * [Admin Tools](https://cn.wordpress.org/plugins/tags/admin-tools/)[debug](https://cn.wordpress.org/plugins/tags/debug/)
   [logging](https://cn.wordpress.org/plugins/tags/logging/)[logs](https://cn.wordpress.org/plugins/tags/logs/)
   [wordpress debug](https://cn.wordpress.org/plugins/tags/wordpress-debug/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-logs/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/custom-logs/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/custom-logs/reviews/)

## 贡献者

 *   [ Byron Jacobs ](https://profiles.wordpress.org/heavyweightdigital/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/custom-logs/)