Open hthetiot opened 7 years ago
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.