Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Morgan Middleware for HTTP Request Logging #1623

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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