marcello3d / node-mongolian

[project inactive] Mongolian DeadBeef is an awesome Mongo DB driver for node.js
https://groups.google.com/group/node-mongolian
zlib License
349 stars 50 forks source link

Disable log output #10

Closed clintberry closed 13 years ago

clintberry commented 13 years ago

Is there a way to disable all console.log/info/error output? my log file is getting big... :-)

marcello3d commented 13 years ago

Currently you can reassign the log methods: var mongolian = new Mongolian mongolian.log.debug = function(){} mongolian.log.info = function(){} mongolian.log.warn = function(){} mongolian.log.error = function(){}

The next version will likely move this to the options object, but I haven't decided on the api yet.

clintberry commented 13 years ago

You are the man. Thanks.