npm / npm-registry-client

http://npm.im/npm-registry-client
ISC License
264 stars 108 forks source link

How do I disable logs even with npmlog installed? #152

Open justechn opened 7 years ago

justechn commented 7 years ago

I want to disable logging. I see that I can pass in my own logger, but this package is not compatible with all loggers so I would like to disable logging. How do I do that?

anyway just to pass in an empty object, or false to disable logging?

FYI npmlog is in my node_modules, it is not one of my projects dependencies, so it was probably included by another module. I don't want to use it, I just want to disable the logs.

rhmoller commented 7 years ago

I stubbed it out like this:

const client = new RegClient({
  log: {
    verbose() {},
    info() {},
    verbose() {},
    http() {}
  }
});