Userscript Logger Pro

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

Verze ze dne 26. 10. 2025. Zobrazit nejnovější verzi.

Tento skript by neměl být instalován přímo. Jedná se o knihovnu, kterou by měly jiné skripty využívat pomocí meta příkazu // @require https://update.greatest.deepsurf.us/scripts/553735/1684000/Userscript%20Logger%20Pro.js

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
MaxScorpy
Verze
1.0.0
Vytvořeno
26. 10. 2025
Aktualizováno
26. 10. 2025
Size
7,0 KB
Licence
MIT

📋 Short Description (for search)

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

📝 Full Description

Userscript Logger Pro is a centralized logging library for userscripts that provides a unified, beautiful and powerful logging system.

✨ Features

  • 🎨 Colored Console Output - Different colors for each log level (debug, info, success, warning, error)
  • 🎭 Emoji Support - Visual identification with customizable emoji for your scripts
  • 📚 Log History - Stores all logs in memory with timestamps for debugging
  • 🔍 Filtering - Get logs by specific level or export all to JSON
  • 🌐 Universal - Works with all userscript managers (Tampermonkey, Violentmonkey, Greasemonkey)
  • 📦 Zero Dependencies - Lightweight, standalone library
  • 🚀 Easy to Use - Simple API, just 3 lines to get started

📖 Usage

// Step 1: Add @require to your userscript header
// @require https://greatest.deepsurf.us/scripts/YOUR_SCRIPT_ID/code/Userscript%20Logger%20Pro.user.js

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

// Step 3: Start logging!
logger.info('Script started');
logger.success('Task completed successfully');
logger.warning('Be careful here');
logger.error('Something went wrong', errorObject);
logger.debug('Debug info', { variable: value });

🎯 Advanced Features

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

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

// Export to JSON
const jsonLogs = logger.exportLogs();
console.log(jsonLogs);

// Clear history
logger.clearHistory();

🎨 Log Levels

  • 🔍 debug - Purple - Debug information
  • ℹ️ info - Blue - General information
  • success - Green - Successful operations
  • ⚠️ warning - Orange - Warnings
  • error - Red - Errors