Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

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

Open
justechn opened this issue Mar 15, 2017 · 1 comment
Open

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

justechn opened this issue Mar 15, 2017 · 1 comment

Comments

@justechn
Copy link

justechn commented Mar 15, 2017

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.

@justechn justechn changed the title disable logs How do I disable logs even with npmlog installed? Mar 15, 2017
@rhmoller
Copy link

I stubbed it out like this:

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants