niftylettuce/express-cdn — pull request #4 by jameswyse (2012-07-05 07:46:08+00:00)
Title: Custom logger Support

This adds the ability to pass an optional logger function as an option.
The default is to output to console.log()

I use the excellent [Winston](https://github.com/flatiron/winston/) library to manage my logs, so in this case I would pass in my logging function like so:

```javascript
var options = {
// Other options
logger : winston.info
}
var CDN = require('express-cdn')(express, options);
express.dynamicHelpers({ CDN: CDN });
```