Add a simple request logging middleware to the Express app that logs:
- HTTP method
- URL path
- Response status code
- Response time in milliseconds
Use the standard morgan package with the dev format. Add it as a dependency and wire it up in the main app file.
Add a simple request logging middleware to the Express app that logs:
Use the standard
morganpackage with thedevformat. Add it as a dependency and wire it up in the main app file.