using chalk and morgan together code example
Example: using chalk and morgan together
var chalk = require('chalk')
var morgan = require('morgan')
app.use(morgan(function (tokens, req, res) {
return chalk.blue(tokens.method(req, res))
+ ' ' + chalk.green(tokens.url(req, res))
+ ' ' + chalk.red(tokens['response-time'](req, res))
}))