Quick Answer
morgan is an HTTP request logger middleware for Express. It logs each incoming request รขโฌโ method, URL, status code, response time. Useful in development (see every request instantly) and production (audit trail). Multiple formats available: combined (Apache-style), dev (colored, concise), json. Pipe logs to a file or log aggregation service.
Answer
Morgan is a logging middleware that records request details.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.