node4ords
node4ords copied to clipboard
Add logging in Express
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.