1var chalk = require('chalk')
2var morgan = require('morgan')
3
4app.use(morgan(function (tokens, req, res) {
5 return chalk.blue(tokens.method(req, res))
6 + ' ' + chalk.green(tokens.url(req, res))
7 + ' ' + chalk.red(tokens['response-time'](req, res))
8}))