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

Adding an additional listener on console #66

Closed
zynga-jpetersen opened this issue May 23, 2018 · 2 comments
Closed

Adding an additional listener on console #66

zynga-jpetersen opened this issue May 23, 2018 · 2 comments

Comments

@zynga-jpetersen
Copy link

Love the library, but I'd like to be able to hook up an additional callback from eruda for each console call so I can log it on a server.

It doesnt look like there is anything like that, but I can hope.

Thanks and again really nice library.

surunzi added a commit that referenced this issue May 24, 2018
@surunzi
Copy link
Member

surunzi commented May 27, 2018

Supported in version 1.4.4.

eruda.get('console').on('log', function (val) 
{
    alert(val);
});
console.log('test'); // Alert 'test'

@zynga-jpetersen
Copy link
Author

Thanks! I missed this in the documentation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants