Skip to content

Console plugin documentation missing? #1485

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

Closed
nh2 opened this issue Aug 23, 2018 · 4 comments
Closed

Console plugin documentation missing? #1485

nh2 opened this issue Aug 23, 2018 · 4 comments

Comments

@nh2
Copy link

nh2 commented Aug 23, 2018

I've spent the last half an hour trying to figure out how to actually configure and use the console plugin.

The best I cound find is from this PR: #514

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

is this how you're supposed to do it after including e.g. https://cdn.ravenjs.com/3.24.1/console/raven.min.js ?

Is there an example or documentation about this anywhere?

@nh2
Copy link
Author

nh2 commented Aug 23, 2018

Also to document: If you just include https://cdn.ravenjs.com/3.24.1/console/raven.min.js, then the console plugin seems to be active automatically.

How do you configure levels in that case?

@nh2
Copy link
Author

nh2 commented Aug 23, 2018

And another apparently undocumented thing: How to get the console plugin with npm?

@kamilogorek
Copy link
Contributor

And another apparently undocumented thing: How to get the console plugin with npm?

With npm, they are provided in plugins directory, so it's require('raven-js/plugins/console').

How do you configure levels in that case?

It's not possible, good catch, I didn't realize that before.

Plugins will be gone in favour of much easier "integrations" in the next major release (scheduled for 2nd half of Q3). Please keep an eye on our blog/repository for future information.

@kamilogorek
Copy link
Contributor

Closing due to inactivity. Please feel free to reopen if it's still relevant.

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

2 participants