Skip to main content

What is morgan in Node.js?

Junior NodeJS
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.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice