niftylettuce/express-cdn — pull request #6 by jameswyse (2012-07-05 08:06:06+00:00)
Title: Added support for custom logger functions

Adds the ability to pass a custom logging function as an option.
The default is still console.log()

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

```javascript
var options = {
// other options
logger: winston.info
}

var CDN = require('express-cdn')(express, options);
express.dynamicHelpers({ CDN: CDN });
```