Morgan: One-Line Request Logging for Express

Morgan is a plug-and-play stenographer for your Express app, automatically logging every incoming HTTP request. Use its predefined formats for quick debugging or create custom formats for production access logs.
Morgan is a plug-and-play stenographer for your Express app, automatically logging every incoming HTTP request to a stream. It's a specialized tool for HTTP traffic visibility. Use predefined formats for quick debugging or the `skip` option to log only errors in production. The `immediate` option logs on request arrival, capturing traffic even if the server crashes, but this prevents logging response data like the final status code or response time.
Read the original → expressjs.com
- #nodejs
- #express
- #middleware
- #logging
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.