Skip to content

Configuration for the console plugin to choose levels. Fixes #391.#514

Merged
benvinegar merged 2 commits into
getsentry:masterfrom
nevir:console-levels
Feb 29, 2016
Merged

Configuration for the console plugin to choose levels. Fixes #391.#514
benvinegar merged 2 commits into
getsentry:masterfrom
nevir:console-levels

Conversation

@nevir
Copy link
Copy Markdown
Contributor

@nevir nevir commented Feb 24, 2016

For example:

Raven.addPlugin(require('raven-js/plugins/console'), console, {levels: ['error']});

@nevir nevir closed this Feb 24, 2016
@nevir nevir reopened this Feb 24, 2016
@benvinegar
Copy link
Copy Markdown
Contributor

Would you mind changing the 3rd parameter to be an object, options? (Then extract levels from options.) That would let us have a standard API for plugins (3rd argument is always options).

@nevir
Copy link
Copy Markdown
Contributor Author

nevir commented Feb 24, 2016

👍 PTAL

benvinegar added a commit that referenced this pull request Feb 29, 2016
Configuration for the console plugin to choose levels. Fixes #391.
@benvinegar benvinegar merged commit 40762d9 into getsentry:master Feb 29, 2016
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

Successfully merging this pull request may close these issues.

2 participants