Title: WP-Logs
Author: neiltron
Published: <strong>2010 年 10 月 19 日</strong>
Last modified: 2010 年 11 月 2 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-logs.svg)

# WP-Logs

 作者：[neiltron](https://profiles.wordpress.org/neiltron/)

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

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

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

## 描述

WP-Logs enables developers to track system events from within the WordPress admin
area; i.e., tracking user logins, new posts, comments, etc. It’s also very helpful
if you need to build an API on top of WordPress and track usage to make sure everything
is functioning correctly.

After installation, a ‘Logs’ tab appears in the admin panel which lists all events
that have been sent to it via the simple EventLog() call (see installation for more
details).

To see our other work, visit [www.shockoe.com](http://www.shockoe.com). Google Analytics
code adapted from work by there4 development.

## 屏幕截图

 * [[
 * List of logged events in the admin panel.

## 安装

 * Upload files to your site’s plugin directory
 * Activate WP-Logs in the admin panel
 * Add EventLog line to your theme/plugin code

#### EventLog()

The EventLog call should resemble this:

$EventLog = new EventLog(array(
 ‘event’ => ‘Login Successful’, ‘text’ => var_export(
$_REQUEST,1) ));

The only required parameter is ‘event’; ‘text’ can be any value(s) you want.

#### Google Analytics Integration

To have your events posted to Google Analytics, add your UA code to line 25 of analytics_events.
php. If you are using [Yoast’s Google Analytics plugin](https://wordpress.org/extend/plugins/google-analytics-for-wordpress/),
you can skip this step as WP-Logs will pull your UA information from the database.

#### Notifo Integration

WP-Logs integrates with [Notifo](http://www.notifo.com) to make it easy to receive
notices of events in realtime to either your phone or desktop. The [WP-Notifo plugin](https://wordpress.org/extend/plugins/wp-notifo/)
is required to use this functionality.

To use it, setup and configure WP-Notifo with your Notifo API keys. Then add a ‘
notifo’ line to your EventLog call, e.g.:

    ```
    $EventLog = new EventLog(array(
        'event' => 'New post',
        'text' => 'A user created a new post',
        'notifo' => 1
    ));
    ```

The last line tells WP-Logs to send this event to Notifo.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ neiltron ](https://profiles.wordpress.org/neiltron/)
 *   [ shockoe ](https://profiles.wordpress.org/shockoe/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.6

 * Added WP-Notifo integration

#### 0.5.1

 * Remove ‘Add New’ from the admin menu

#### 0.5

 * First version of WP-Logs.

## 额外信息

 *  版本 **0.6**
 *  最后更新：**16 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-logs/)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [logs](https://cn.wordpress.org/plugins/tags/logs/)[notification](https://cn.wordpress.org/plugins/tags/notification/)
   [tracking](https://cn.wordpress.org/plugins/tags/tracking/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-logs/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ neiltron ](https://profiles.wordpress.org/neiltron/)
 *   [ shockoe ](https://profiles.wordpress.org/shockoe/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.shockoe.com)