dscape/nano — pull request #46 by perezd (2012-01-02 17:12:37+00:00)
Title: Strategy-based logging

lets move the conversation (from https://gist.github.com/d9eb8b0046fe7e29f526) to a pull request. I've now integrated the logging module into nano, its usage looks like this so far:

```js
var logFun = function(eventId, data) { console.log("LOG:", eventId, data) };
var nano = require('./nano')({log: logFun, url: 'http://localhost:5984'});
nano.db.list(console.log)
```

It does what you expect :)

The changes appear to very minimal and I think they cleaned up the code a bit, no more inline if's questioning verbosity, etc.

Thoughts?