Ship internal tools in hours, not weeks. Real auth, users, jobs, audit logs, and cohesive UI included. Early access $249 $499 → [Get it now]

How to use Morgan in Node.js

Morgan provides automated HTTP request logging for Express applications, capturing essential information about incoming requests and responses for monitoring and debugging. As the creator of CoreUI, a widely used open-source UI library, I’ve implemented Morgan logging in Node.js production services throughout my 11 years of backend development. The most practical approach is installing morgan and configuring it as Express middleware with predefined or custom formats. This method enables comprehensive request tracking with minimal configuration and supports writing logs to files for production environments.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.
What is CoreUI and Why Should You Use It for Your Next Admin Dashboard?
What is CoreUI and Why Should You Use It for Your Next Admin Dashboard?

JavaScript printf equivalent
JavaScript printf equivalent

How to change opacity on hover in CSS
How to change opacity on hover in CSS

How to check if an element is visible in JavaScript
How to check if an element is visible in JavaScript

Answers by CoreUI Core Team