Concept Flow - Morgan for HTTP request logging
Incoming HTTP Request
Morgan Middleware Intercepts
Start Timer & Pass to Next
Route Handler Responds
Format & Output Log on 'finish'
Morgan middleware catches each HTTP request, starts a timer, passes control to the next middleware/route handler. When the response 'finish' event fires, it formats a log line and outputs it.