Mongoose debug writes to STDERR?
First question, ahhhh! Does anyone know / have info about why mongoose writes its debug log to stderr? Is there anyway to write it to stdout? The debug option accepts a function instead of a boolean: mongoose.set("debug", function (collection, method, paramA, paramB, paramC) { console.log(collection) console.log(method) console.log(paramA) console.log(paramB) console.log(paramC) }) The reason I put paramA, paramB, paramC is because the arguments are dependent upon the method and options being used: Person.create({firstName: "john"}, callback) // people // insert // {firstName: "john"} //