Skip to content

Conversation

AaronDennis07
Copy link

Summary

Added Morgan middleware to log details for each incoming request.

Details

  • Integrated the morgan package to enable HTTP request logging.
  • Configured Morgan to use the 'tiny' format for concise logs.
  • Logs will include essential details such as:
    • HTTP method
    • URL
    • Status code
    • Response time

Purpose

This enhancement improves visibility into incoming HTTP requests, aiding in debugging and monitoring the application.

Testing

  • Verified locally by observing logs for various API endpoints in the console.
  • Checked with different request methods (GET, POST, etc.) to ensure logs are correctly generated.

@AaronDennis07 AaronDennis07 changed the title added logs Add Morgan Middleware for HTTP Request Logging Dec 5, 2024
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