Starting from:

$30

Assignment Module 9 - Chapter 4 – Middleware Solution

In this assignment you will add logging to your previous assignment.




Copy over Assigment-8 to Assignment-9




Do the following:




Add the morgan logging package (make sure to use npm install with the --save option so your package.json is updated)




Add morgan to log to a file called access.log using the short format (read the morgan documentation at







https://github.com/expressjs/morgan (https://github.com/expressjs/morgan)




Add a custom 404 error handler that includes some reference to contact your (your real contact info) for errors and support




All code should be committed to your git repo







The server should be running on port 3009







Submit:







a clickable link to your git repo







a clickable link to your running instance







paste several lines of your log here.

More products