Title: Bat Activity Log
Author: Jaroslav Svetlik
Published: <strong>2026 年 5 月 29 日</strong>
Last modified: 2026 年 5 月 29 日

---

搜索插件

![](https://ps.w.org/bat-activity-log/assets/banner-772x250.png?rev=3554266)

![](https://ps.w.org/bat-activity-log/assets/icon-256x256.png?rev=3554266)

# Bat Activity Log

 作者：[Jaroslav Svetlik](https://profiles.wordpress.org/jerryscg/)

[下载](https://downloads.wordpress.org/plugin/bat-activity-log.0.3.2.zip)

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

 [支持](https://wordpress.org/support/plugin/bat-activity-log/)

## 描述

Bat Activity Log helps site owners and administrators understand what changed, who
changed it, and when it happened.

The plugin records activity across users, content, media, comments, plugins, themes,
settings, updates, privacy workflows, and other core WordPress operations. Logs 
are stored in a custom indexed table for fast filtering and large datasets.

#### Key features

 * Track logins, logouts, failed logins, profile changes, registrations, role changes,
   and password updates.
 * Record post, page, media, comment, taxonomy, menu, widget, and settings activity.
 * Monitor plugin, theme, and WordPress update activity.
 * Filter logs by event type, action, severity, user, object, IP address, and date
   range.
 * Use saved views, quick filters, bulk actions, CSV export, and a structured log
   detail drawer.
 * Configure retention cleanup, privacy controls, alert rules, and scheduled reports.
 * Verify log integrity with a tamper-evident hash chain.
 * Use WP-CLI commands for stats, cleanup, export, repair, reporting, benchmarking,
   and integrity verification.

#### Event coverage

Bat Activity Log currently covers:

 * User authentication and account events
 * Content and revision events
 * Media library activity
 * Comment activity
 * Plugin and theme lifecycle events
 * Core, update, and database upgrade events
 * Settings, widget, permalink, and menu changes
 * Privacy request and erasure workflow events
 * File editor changes
 * WooCommerce events when WooCommerce is active
 * Supported form submission events for Contact Form 7, Gravity Forms, WPForms, 
   and Elementor Pro Forms

#### Integrity and privacy

Each log row includes integrity metadata that can be verified from the Tools screen
or WP-CLI. Privacy controls include IP logging toggles, optional IP anonymization,
user-agent logging controls, and WordPress personal data exporter and eraser integration.

#### WP-CLI examples

 * `wp bat-activity-log stats`
 * `wp bat-activity-log cleanup --days=90 --batch-size=2000`
 * `wp bat-activity-log export --file=/tmp/activity-log.csv`
 * `wp bat-activity-log repair`
 * `wp bat-activity-log verify-integrity`
 * `wp bat-activity-log report --days=7 --format=text`
 * `wp bat-activity-log benchmark --iterations=10 --per-page=100`

## 屏幕截图

 * [[
 * Dashboard with activity summaries and health insights.
 * [[
 * Activity logs screen with filters, saved views, and bulk actions.
 * [[
 * Log detail drawer with structured context and integrity data.
 * [[
 * Settings screen for modules, privacy, retention, and advanced controls.
 * [[
 * Tools screen for export, cleanup, reports, and integrity checks.

## 安装

 1. Upload the `bat-activity-log` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the “Plugins” screen in WordPress.
 3. Open “Bat Activity Log” from the WordPress admin menu.
 4. Review the Settings and Tools screens to configure retention, privacy, alerts, 
    and reports.

## 常见问题

### Does the plugin create its own database table?

Yes. Bat Activity Log stores log rows in a custom `{prefix}bat_activity_log` table
with indexes for efficient filtering, pagination, cleanup, and integrity verification.

### Can I control how long logs are stored?

Yes. You can define retention days in Settings and run cleanup manually from the
Tools screen or WP-CLI.

### Does uninstall remove all data?

Only if you explicitly enable “Delete plugin data on uninstall” in Settings.

### Can I disable some log types?

Yes. You can disable modules and exclude selected roles or event groups to reduce
noise.

### Does this plugin use Composer?

No. It ships with a custom PSR-4-style autoloader and does not require Composer 
in production.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Jaroslav Svetlik ](https://profiles.wordpress.org/jerryscg/)

[帮助将「Bat Activity Log」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/bat-activity-log)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.3.2

 * Replaced auth salt based integrity signing with a plugin-owned secret and added
   a migration to rebuild the integrity chain safely.

#### 0.3.1

 * Fixed reviewer-reported request sanitization boundaries in admin settings handling
   and file editor event capture.
 * Updated the Contributors list to include the plugin owner WordPress.org username.

#### 0.3.0

 * Added a refined admin experience with product navigation, dashboard insights,
   and log detail drawer improvements.
 * Added saved views, alert rules, scheduled reports, privacy tools, and integrity
   tooling.
 * Added broader event coverage for privacy, updates, taxonomies, integrations, 
   security, and files.
 * Improved build and review readiness for WordPress.org submission.

## 额外信息

 *  版本 **0.3.2**
 *  最后更新：**6 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.2 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/bat-activity-log/)
 * 标签
 * [Activity Log](https://cn.wordpress.org/plugins/tags/activity-log/)[admin](https://cn.wordpress.org/plugins/tags/admin/)
   [audit log](https://cn.wordpress.org/plugins/tags/audit-log/)[monitoring](https://cn.wordpress.org/plugins/tags/monitoring/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/bat-activity-log/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/bat-activity-log/reviews/#new-post)

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

## 贡献者

 *   [ Jaroslav Svetlik ](https://profiles.wordpress.org/jerryscg/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/bat-activity-log/)