coopernurse/node-pool — pull request #26 by JoeZ99 (2011-12-12 18:42:08+00:00)
Title: LogLevel Features

Loglevel feature for the pool

"loglevel" optional parameter for the factory, to specify which loglevel to log. can be 'verbose','info', 'warn', 'error'. The error codes are taken from https://github.com/isaacs/npm/blob/master/lib/utils/log.js

each time "log" is called, "msg" and "level" arguments are passed.

Also, some tests.

@coopernurse, this is what we talked about last week, please tell me what you think about it.

I'm not very sure about the "loglevel" parameter. maybe we could just call log() everytime, but pass along the level, so the custom log function can decide whenever print it or not??