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

Ability to set level only if one is not persisted #74

Closed
Mr0grog opened this issue Jun 22, 2015 · 1 comment
Closed

Ability to set level only if one is not persisted #74

Mr0grog opened this issue Jun 22, 2015 · 1 comment

Comments

@Mr0grog
Copy link
Contributor

Mr0grog commented Jun 22, 2015

In environments where a logging level has been explicitly set and persisted (usually a developer’s browser), it’d be nice to be able to leave the logging level alone, while otherwise giving a default logging level to use if one hasn’t been persisted. The only way to accomplish this right now is to explicitly peek into local storage or cookies to see if a value is set, which isn’t very nice.

I’m thinking this could either be a third argument to setLevel or, probably clearer, a separate method, e.g. setDefaultLevel.

@Mr0grog
Copy link
Contributor Author

Mr0grog commented Jun 24, 2015

I'm happy to do a PR for this if you'd like, too.

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