npm install pastel
var pastel = require("pastel"),
connect = require("connect");
var app = connect();
app.use(pastel.log());pastel.log accepts a config object. It has the following fields.
- date
- time
- method
- url
You can set them to any of the following color or style strings (from colors).
- bold
- italic
- underline
- inverse
- yellow
- cyan
- white
- magenta
- green
- red
- grey
- blue
- rainbow
- zebra
- random
###Example Config
app.use(pastel.log({
date: "yellow",
time: "cyan",
method: "magenta",
url: "red"
}));