-
Notifications
You must be signed in to change notification settings - Fork 11
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 persistent debugLevel #43
base: develop
Are you sure you want to change the base?
Conversation
…DebugLevel('debug', true);'
lib/configuration.js
Outdated
localStorage.setItem(_DEBUG_LEVEL_KEY, _DEBUG_LEVEL_DEFAULT); | ||
} | ||
|
||
// Compute default value from storet then const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storet typo?
What's the use case for this and do we need this? |
I think we should formalize on the README how we want logging to work. It is unclear to me how we want it to work long-term and with what API. If the API changes on this PR are not what we want long term then we should indicate that it is private/subject to change, perhaps by making it not enumerable (maybe it already is, or adding _, or etc/thoughts?). |
Implement persistent debugLevel via setDebugLevel second argument persist.
Use localStorage when available or private in memory as fallback.