express Logging Simple Express logging of all request to STDOUT


Add the following code to your app.js file:

var express = require('express')
var morgan = require('morgan')

var app = express()


app.get('/', function (req, res) {
  res.send('hello, world!')

Now when you access your website you will see in the console you used to start the server that the requests are logged