Class_generator/Legacy/js/core/test-logger.js
StillHammer 38920cc858 Complete architectural rewrite with ultra-modular system
Major Changes:
- Moved legacy system to Legacy/ folder for archival
- Built new modular architecture with strict separation of concerns
- Created core system: Module, EventBus, ModuleLoader, Router
- Added Application bootstrap with auto-start functionality
- Implemented development server with ES6 modules support
- Created comprehensive documentation and project context
- Converted SBS-7-8 content to JSON format
- Copied all legacy games and content to new structure

New Architecture Features:
- Sealed modules with WeakMap private data
- Strict dependency injection system
- Event-driven communication only
- Inviolable responsibility patterns
- Auto-initialization without commands
- Component-based UI foundation ready

Technical Stack:
- Vanilla JS/HTML/CSS only
- ES6 modules with proper imports/exports
- HTTP development server (no file:// protocol)
- Modular CSS with component scoping
- Comprehensive error handling and debugging

Ready for Phase 2: Converting legacy modules to new architecture

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-22 07:08:39 +08:00

27 lines
690 B
JavaScript

// VERSION TEST ULTRA SIMPLE
console.log('🔧 Test logger chargé');
// Variable globale pour stocker les logs
window.testLogs = [];
// Fonction logSh basique
window.logSh = function(message, level) {
level = level || 'INFO';
const time = new Date().toLocaleTimeString();
// Stocker
window.testLogs.push(time + ' ' + level + ': ' + message);
// Afficher dans console
console.log('[' + time + '] ' + level + ': ' + message);
};
// Fonction toggle basique
window.showTestLogs = function() {
alert('Logs:\n' + window.testLogs.slice(-10).join('\n'));
};
// Test immédiat
window.logSh('Test logger initialisé', 'INFO');
console.log('✅ Test logger prêt');