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

Consola wraps EVERY log #58

Open
sheremet-va opened this issue Mar 31, 2022 · 3 comments
Open

Consola wraps EVERY log #58

sheremet-va opened this issue Mar 31, 2022 · 3 comments

Comments

@sheremet-va
Copy link

sheremet-va commented Mar 31, 2022

Right now after importing/requiring this package, every console.log is wrapped with unnecessary log type. You should consider using it only inside logs in plugin.

Снимок экрана 2022-03-31 в 11 29 00

@smcenlly
Copy link

smcenlly commented Jan 9, 2023

This behavior broke our integration with vitest (see wallabyjs/public#3140).

It seems very heavy-handed to wrap all console.* functions when this is only required for a single verbose log warning:

consola.warn(`vite-plugin-html: Since you have already configured entry, ${dim(

I think the responsibility of configuring / wrapping console.* statements should be the application not a library component.

We've worked around this issue.

@david-crespo
Copy link

This is very annoying. It took me quite a while to figure out it was coming from this plugin.

image

@zephraph
Copy link

zephraph commented Jan 26, 2024

It looks like it's due to:

consola.wrapConsole()

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

4 participants