Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement predicate in web #21

Open
goldylucks opened this issue May 28, 2019 · 0 comments
Open

implement predicate in web #21

goldylucks opened this issue May 28, 2019 · 0 comments

Comments

@goldylucks
Copy link

Very cool logger :)

Would be great to change the predicate on the fly for debugging production. Is that possible? Should I send a PR?

This is what I want to do:

enableLogging({ predicate })

function predicate() {
  return window.__MOBX_LOGGER__
}

and then can do window.__MOBX_LOGGER__ = true in the console

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

No branches or pull requests

1 participant