npm install morgan--save. After that let's include in the top of the middlewares the function app.use(morgan("common")) to log all requests.
確定! 回上一頁