Title: Loginator
Author: Poly Plugins
Published: <strong>2020 年 10 月 16 日</strong>
Last modified: 2025 年 4 月 17 日

---

搜索插件

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

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

# Loginator

 作者：[Poly Plugins](https://profiles.wordpress.org/polyplugins/)

[下载](https://downloads.wordpress.org/plugin/loginator.2.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/loginator/)

## 描述

**About**
 Debugging WordPress can sometimes be a pain, our goal is to make it easy,
which is why Loginator was built with this in mind. From creating a log folder, 
to securing it from prying eyes, Loginator is here to save you time and resources,
so you can focus on creating astonishing applications. Once activated, Loginator
essentially becomes a core part of WordPress, which is why we disable deactivation
as it is highly recommended to not uninstall Loginator until you have removed all
references to the loginator function inside your WordPress installation.

**Update**
 2.0 has been released with backwards compatibility with 1.0. Your loginator
function calls will still work so you can continue to use it, or our new static 
methods.

**Functional Example**

    ```
    loginator('Logging this message', array('flag => 'd', 'id' => '', 'file' => 'logger', 'pipedream' => 'https://your-id-here.m.pipedream.net'));
    ```

**Static Method Examples**

    ```
    Loginator::emergency('log data here'); // Email triggers to site admin or configured emails
    Loginator::alert('log data here');
    Loginator::critical('log data here'); // Email triggers to site admin or configured emails
    Loginator::error('log data here');
    Loginator::warning('log data here');
    Loginator::notice('log data here');
    Loginator::info('log data here');
    Loginator::debug('log data here'); // PipeDream flag is set to true by default
    Loginator::success('log data here');
    ```

You can also pass arguments

    ```
    $args = array(
      'flag'      => 'd',
      'id'        => 23,
      'file'      => 'test',
      'pipedream' => false,
    );

    Loginator::info('log data here', $args);
    ```

Features:

 * Global Enable/Disable
 * Flags for Errors, Debug, and Info
 * Creates separate files based on flags
    Our beautiful comments follow WordPress
   Developer Standards, that when paired with Visual Studio Code or other supporting
   IDE\’s will elaborately explain how to use the loginator function
 * Auto detect if data being logged is an array and pretty prints it to the file
 * Disable Loginator deactivation to prevent function not existing errors
 * Email on CRITICAL flag
 * Pipe Dream logging

## 屏幕截图

 * [[
 * Settings
 * [[
 * IDE

## 安装

 1. Backup WordPress
 2. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin
    through the WordPress plugins screen directly.
 3. Activate the plugin through the ‘Plugins’ screen in WordPress

## 常见问题

### How do I deactivate/uninstall?

Either rename or remove the Loginator plugin from `/wp-content/plugins/`

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Poly Plugins ](https://profiles.wordpress.org/polyplugins/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.1

 * Added: Emergency, alert, critical, error, warning, notice, info, debug, and success
   static methods
 * Added: Email on CRITICAL flag
 * Added: Pipe Dream logging
 * Added: Backwards compatibility with loginator function
 * Integrated: [Reusable Admin Panel](https://wordpress.org/plugins/reusable-admin-panel/)

#### 1.0.1

 * Bugfix: Added object handling to log the accessible non-static properties.
 * Bugfix: Line breaks and white space formatting

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **2.0.1**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/loginator/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [developer tool](https://cn.wordpress.org/plugins/tags/developer-tool/)[error](https://cn.wordpress.org/plugins/tags/error/)
   [logger](https://cn.wordpress.org/plugins/tags/logger/)
 *  [高级视图](https://cn.wordpress.org/plugins/loginator/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Poly Plugins ](https://profiles.wordpress.org/polyplugins/)

## 支持

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

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