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://tw.wordpress.org/plugins/loginator/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/loginator/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/loginator/#installation)
 * [開發資訊](https://tw.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**
 *  最後更新 **12 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 5.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/loginator/)
 * 標籤
 * [debug](https://tw.wordpress.org/plugins/tags/debug/)[developer](https://tw.wordpress.org/plugins/tags/developer/)
   [developer tool](https://tw.wordpress.org/plugins/tags/developer-tool/)[error](https://tw.wordpress.org/plugins/tags/error/)
   [logger](https://tw.wordpress.org/plugins/tags/logger/)
 *  [進階檢視](https://tw.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/)