var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000))

app.get('/', function(req, res) {
  res.send('You got it.');
});

app.post('/', function(req, res) {
  res.send(req);
});

var server = app.listen(app.get('port'), function () {
  var host = server.address().address;
  var port = server.address().port;

  console.log('Listening at http://%s:%s', host, port);
});

var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000))

app.get('/', function(req, res) {
  res.send('You got it.');
});

app.post('/', function(req, res) {
  console.log(req);
});

var server = app.listen(app.get('port'), function () {
  var host = server.address().address;
  var port = server.address().port;

  console.log('Listening at http://%s:%s', host, port);
});

Change to consolelog.