bpaquet/log4node — pull request #13 by abarre (2012-09-24 17:04:24+00:00)
Title: [feature] Add specialized logger for the submodules

For the submodules like zkplus, customerconf, we would like to put a label/prefix for the logs of those modules. We don't want to create a new log file for each module.

We pick the idea of specialized loggers from https://github.com/trentm/node-bunyan

With this change, we can reuse the same stream to specialized a logger for a submodule.

```
var logZkplus = new log.Log4Node('debug', null, "default");
logZkplus.setPrefix("[%d] %l ZKPLUS : ");

var logCustomerConf = new log.Log4Node('info', null, "default");
logCustomerConf.setPrefix("[%d] %l CUSTOMER_CONF : ");
```