
內容簡介
關於
在 WordPress 做除錯有時會很麻煩,我們的目標是讓它變得容易,這就是為什麼 Loginator 的產生。從建立日誌文件夾,到防止有人篡改日誌,Loginator 都在此希望為您節省時間和資源,讓您可以專注於創建令人驚嘆的應用程式。啟用後,Loginator 在 WordPress 中本質上成為核心的一部分,這就是為什麼我們禁用停用選項,建議在刪除 WordPress 安裝內所有對 loginator 函數的引用之前,不要卸載 Loginator。
更新
2.0 版本已發布,向後相容 1.0 版本。您的 Loginator 函數調用仍可使用,因此您可以繼續使用它,或者我們的新靜態方法。
功能範例
loginator('Logging this message', array('flag => 'd', 'id' => '', 'file' => 'logger', 'pipedream' => 'https://your-id-here.m.pipedream.net'));
靜態方法範例
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');
您還可以傳遞引數
$args = array(
'flag' => 'd',
'id' => 23,
'file' => 'test',
'pipedream' => false,
);
Loginator::info('log data here', $args);
功能:
全局啟用/停用
錯誤、調試和資訊的標誌
根據標誌創建單獨的文件
我們美麗的注釋遵循 WordPress 開發人員標準,與 Visual Studio Code 或其他支援 IDE 搭配使用,它會講解如何使用 loginator 函數
自動檢測正在記錄的資料是否為陣列,並將其美觀地列印到文件中
禁用 Loginator 停用功能,以防止找不到函數錯誤
在 CRITICAL 標誌時發送電子郵件
Pipe Dream 日誌記錄
外掛標籤
開發者團隊
原文外掛簡介
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
