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

Embedded Loggin #120

Open
bkhatkov opened this issue Nov 18, 2020 · 1 comment
Open

Embedded Loggin #120

bkhatkov opened this issue Nov 18, 2020 · 1 comment

Comments

@bkhatkov
Copy link

@bkhatkov bkhatkov commented Nov 18, 2020

Hello guys,

Are there any plans to have any kind of embedded logging (to console) for development mode? We are switching from Vue emitter to mitt in preparation to Vue 3 (where it is deprecated) and struggling a bit as vue devtool is not able track mitt events.

@developit
Copy link
Owner

@developit developit commented Dec 2, 2020

Hmm - could you use wildcard listeners?

let emitter = mitt();

// log all events to console:
emitter.on('*', (type, ...args) => {
    console.info(`event(${type}): `, ...args);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.