Log des appels API en mode debug #89
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contexte
Permettre de tracer chaque appel API depuis le front en activant un mode debug côté backend.
Implémentation
LogRequestInterceptorqui log méthode, URL, query et body à chaque requête.LOG_API_REQUESTS=true.Fichiers
backend/src/common/interceptors/log-request.interceptor.ts(nouveau)backend/src/main.ts(enregistrement global de l’intercepteur)backend/.env.example(documentation deLOG_API_REQUESTS)