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 persistent debugLevel #43

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

Conversation

hthetiot
Copy link
Contributor

@hthetiot hthetiot commented Aug 22, 2017

Implement persistent debugLevel via setDebugLevel second argument persist.
Use localStorage when available or private in memory as fallback.

XMLHttpRequest.configuration.setDebugLevel('debug', true);

@hthetiot hthetiot requested review from dpwspoon and jitsni August 22, 2017 17:01
@hthetiot hthetiot self-assigned this Aug 22, 2017
localStorage.setItem(_DEBUG_LEVEL_KEY, _DEBUG_LEVEL_DEFAULT);
}

// Compute default value from storet then const
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storet typo?

@dpwspoon
Copy link
Contributor

What's the use case for this and do we need this?

@dpwspoon
Copy link
Contributor

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?).

@hthetiot hthetiot modified the milestones: 1.0.1 Maintenance, 1.0.2 Enhancements Aug 30, 2017
@dpwspoon dpwspoon removed this from the 1.0.2 Enhancements milestone Sep 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants