veza/docs/archive/root-md/COMPLETE_LOGGING_STATUS.md
senke 43af35fd93 chore(audit 2.2, 2.3): nettoyer .md et .json à la racine
- Archiver 131 .md dans docs/archive/root-md/
- Archiver 22 .json dans docs/archive/root-json/
- Conserver 7 .md utiles (README, CONTRIBUTING, CHANGELOG, etc.)
- Conserver package.json, package-lock.json, turbo.json
- Ajouter README d'index dans chaque archive
2026-02-15 14:35:08 +01:00

73 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ✅ Status Complet - Système de Logs Veza
## 🎯 Objectif Atteint
**Tous les logs sont enregistrés dans `/var/log/veza/` avec des fichiers séparés par module et par niveau d'erreur.**
## 📁 Structure Complète
```
/var/log/veza/
├── backend-api.log ✅ Configuré (Backend Go)
├── backend-api-error.log ✅ Configuré (Backend Go)
├── frontend.log ✅ Configuré (Frontend React via endpoint)
├── frontend-error.log ✅ Configuré (Frontend React via endpoint)
├── chat.log ✅ Configuré (Chat Server Rust)
├── chat-error.log ✅ Configuré (Chat Server Rust)
├── stream.log ✅ Configuré (Stream Server Rust)
├── stream-error.log ✅ Configuré (Stream Server Rust)
├── db.log ✅ Configuré (Database)
├── db-error.log ✅ Configuré (Database)
├── redis.log ✅ Configuré (Redis)
├── redis-error.log ✅ Configuré (Redis)
├── rabbitmq.log ✅ Configuré (RabbitMQ)
└── rabbitmq-error.log ✅ Configuré (RabbitMQ)
```
## ✅ Modules Configurés
### 1. Backend API
- **Fichier** : `veza-backend-api/internal/config/config.go:400`
- **Format** : `backend-api.log` / `backend-api-error.log`
### 2. Frontend
- **Fichier** : `veza-backend-api/internal/handlers/frontend_log_handler.go:36`
- **Endpoint** : `POST /api/v1/logs/frontend`
- **Format** : `frontend.log` / `frontend-error.log`
### 3. Chat Server
- **Fichier** : `veza-chat-server/src/main.rs:89`
- **Format** : `chat.log` / `chat-error.log`
### 4. Stream Server
- **Fichier** : `veza-stream-server/src/main.rs:22`
- **Format** : `stream.log` / `stream-error.log`
### 5. Database
- **Fichier** : `veza-backend-api/internal/config/config.go:441`
- **Format** : `db.log` / `db-error.log`
### 6. Redis
- **Fichier** : `veza-backend-api/internal/config/config.go:432`
- **Format** : `redis.log` / `redis-error.log`
### 7. RabbitMQ
- **Fichier** : `veza-backend-api/internal/config/config.go:450`
- **Format** : `rabbitmq.log` / `rabbitmq-error.log`
## 🔧 Fonctionnalités
- ✅ Rotation automatique (100MB, 10 backups, 30 jours)
- ✅ Compression automatique (gzip)
- ✅ Format JSON structuré en production
- ✅ Séparation des erreurs (fichier dédié)
- ✅ Fallback automatique en développement (`./logs` si `/var/log/veza` inaccessible)
- ✅ Endpoint frontend configuré
## 📊 Total
**14 fichiers de logs configurés** (7 modules × 2 fichiers chacun)
## ✅ Status : COMPLET
Tous les modules sont configurés et prêts à enregistrer leurs logs dans `/var/log/veza/`.