From 605c67b18f7d3a9df8cb3354e336c0aa3b458cc3 Mon Sep 17 00:00:00 2001 From: festus-sulumeti Date: Sat, 29 Jun 2024 22:14:34 +0300 Subject: [PATCH] Improve logging with morgan --- listener.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/listener.js b/listener.js index 73efba5..c1d37c1 100644 --- a/listener.js +++ b/listener.js @@ -8,6 +8,10 @@ const express = require('express'), bodyParser = require('body-parser'), app = express(); +const morgan = require('morgan'); + + +app.use(morgan('combined')) app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true }));