跳到内容

Loginator

v2.0.1

Poly Plugins · 2020年10月16日 上架

Adds a simple global function for logging to files for developers.

正在使用
10 以下
评分
暂无
累计下载
5,516
最近更新
2025年4月17日
需要 WordPress 4.0+已测试到 6.8.13PHP 5.4+

贡献者

截图

Settings
Settings
IDE
IDE

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums