Class_generator/js/core/test-logger.js
StillHammer 1f8688c4aa Fix WebSocket logging system and add comprehensive network features
- Fix WebSocket server to properly broadcast logs to all connected clients
- Integrate professional logging system with real-time WebSocket interface
- Add network status indicator with DigitalOcean Spaces connectivity
- Implement AWS Signature V4 authentication for private bucket access
- Add JSON content loader with backward compatibility to JS modules
- Restore navigation breadcrumb system with comprehensive logging
- Add multiple content formats: JSON + JS with automatic discovery
- Enhance top bar with logger toggle and network status indicator
- Remove deprecated temp-games module and clean up unused files

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 23:05:14 +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');