OraOpenSource / node4ords

Simple node app to act as web listener for Oracle APEX pages
http://www.oraopensource.com/node4ords/
MIT License
23 stars 5 forks source link

Add logging in Express #10

Open martindsouza opened 9 years ago

martindsouza commented 9 years ago

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.