Professional logging system for userscripts with history, colored labels and emoji support. Centralized logger for all your scripts.
As of
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greatest.deepsurf.us/scripts/553735/1684000/Userscript%20Logger%20Pro.js
Professional logging system for userscripts with colored console output, emoji support and log history. Centralized logger for all your scripts.
Userscript Logger Pro is a centralized logging library for userscripts that provides a unified, beautiful and powerful logging system.
// 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 });
// 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();