node4ords icon indicating copy to clipboard operation
node4ords copied to clipboard

Add logging in Express

Open martindsouza opened this issue 9 years ago • 0 comments

Can use Morgan which will produce Apache style documentation.

Example of how to implement: (add to app.js)

var morgan = require('morgan');

...
app.use(morgan('short')); // TODO change this to configuration option as to type

There's also some examples of how to output to a file and use a rotation log.

martindsouza avatar Mar 28 '15 17:03 martindsouza