Commit f0fdf551 authored by nilanjandaw's avatar nilanjandaw

added logging

parent f4eac542
...@@ -8,10 +8,12 @@ const express = require('express') ...@@ -8,10 +8,12 @@ const express = require('express')
const bodyParser = require('body-parser') const bodyParser = require('body-parser')
const fileUpload = require('express-fileupload'); const fileUpload = require('express-fileupload');
const redis = require('redis') const redis = require('redis')
const morgan = require('morgan')
let client = redis.createClient(); let client = redis.createClient();
const app = express() const app = express()
app.use(morgan('combined'))
app.use(bodyParser.urlencoded({ extended: false })) app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json()) app.use(bodyParser.json())
app.use(fileUpload()) app.use(fileUpload())
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"express": "^4.17.1", "express": "^4.17.1",
"express-fileupload": "^1.1.6", "express-fileupload": "^1.1.6",
"isolated-vm": "^3.0.0", "isolated-vm": "^3.0.0",
"morgan": "^1.9.1",
"redis": "^2.8.0" "redis": "^2.8.0"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment