🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2025/12/24 21:31:53
🔄 下次更新时间:2025/12/24 22:31:53
手动刷新缓存

Userscript Logger Pro

Professional logging system for userscripts with history, colored labels and emoji support. Centralized logger for all your scripts.

Questo script non dovrebbe essere installato direttamente. È una libreria per altri script da includere con la chiave // @require https://update.greasyfork.org/scripts/553735/1684162/Userscript%20Logger%20Pro.js

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autore
MaxScorpy
Versione
1.1.0
Creato il
26/10/2025
Aggiornato il
26/10/2025
Dimensione
8,06 KB
Licenza
MIT

DESCRIPTION:

Professional logging system for userscripts with colored console output, emoji support and log history. Centralized logger for all your scripts.

Userscript Logger Pro - Beautiful and powerful logging library for userscripts

Features

🎨 Colored Console Output - Different colors for debug, info, success, warning, error

🎭 Emoji Support - Customizable emoji for visual script identification

📚 Log History - Stores logs in memory with timestamps

🔍 Filtering - Get logs by level or export to JSON

🌐 Universal - Works with all userscript managers

📦 Zero Dependencies - Lightweight standalone library

Quick Start

// Add to your script header:
// @require https://greasyfork.org/scripts/YOUR_SCRIPT_ID/code/Userscript%20Logger%20Pro.user.js

const logger = window.MaxScorpyLogger.createLogManager({
    scriptName: 'MY-SCRIPT',
    emoji: '🚀'
});

logger.info('Script started');
logger.success('Task completed');
logger.error('Error occurred', errorObject);

Advanced Usage

// Get log history
const logs = logger.getHistory();

// Get only errors
const errors = logger.getLogsByLevel('error');

// Export to JSON
const json = logger.exportLogs();

Log Levels

🔍 debug (purple) | ℹ️ info (blue) | ✅ success (green) | ⚠️ warning (orange) | ❌ error (red)

Why Use This?

✅ Centralized logging for all your scripts

✅ Beautiful colored console output

✅ Developer-friendly simple API

✅ Production-ready with history and filtering

✅ Zero overhead, lightweight and fast

Tips

  1. Use different emoji for each script for easy visual identification
  2. Use logger.debug() for development only
  3. Export logs to JSON for detailed error analysis
  4. Track errors with logger.getLogsByLevel('error')

📌 LICENSE: MIT

📌 CATEGORY: ☑ Developer Tools

📌 TAGS: logging, logger, debug, console, developer-tools, library, utility