Skip to content

Added request logging middleware using morgan#73

Open
techguysenan wants to merge 1 commit intoHardhat-Enterprises:devfrom
techguysenan:add-request-logging-middleware/senan
Open

Added request logging middleware using morgan#73
techguysenan wants to merge 1 commit intoHardhat-Enterprises:devfrom
techguysenan:add-request-logging-middleware/senan

Conversation

@techguysenan
Copy link
Copy Markdown

Summary

Added a request logging middleware using Morgan to log incoming HTTP requests.

Changes made

  • Created logger.middleware.js
  • Integrated loggerMiddleware into src/index.js
  • Verified logging output using Postman login requests

Testing

  • Ran backend locally with npm run dev
  • Tested /api/auth/login in Postman
  • Confirmed terminal logs show request method, route, status, and response time

Planner task

Add Request Logging Middleware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant