Coding task · NestJS course · Module 2: Routing and Request Lifecycle

Request Logging Middleware

Create a middleware that logs every incoming HTTP request.

Task

Write a LoggerMiddleware implementing NestMiddleware with a use(req, res, next) method that logs the request method and URL and then calls next()