rethinkdb-js
rethinkdb-js copied to clipboard
Improved logging
options.logLevelcan be a string, where its value must be 'debug', 'verbose', 'info', 'warn', or 'error'options.logcan be an object with {debug, verbose, info, warn, error} methods- When
options.logis a function, its second argument will be the log level of the given message - When
options.logis undefined, theconsolemethods are used by default - When
options.logis falsy (oroptions.silentis truthy), log messages are silenced - Some log messages have been tweaked, and log levels attached
- The pool master now emits an 'error' event with the associated
Errorobject
@aleclarson are you willing to rebase your work on our fork?