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

Deactivate console outputs #2229

Closed
tomkroschwald opened this issue Dec 1, 2023 · 2 comments
Closed

Deactivate console outputs #2229

tomkroschwald opened this issue Dec 1, 2023 · 2 comments
Labels
support Asking for help

Comments

@tomkroschwald
Copy link

Scale Version
3.0.0-beta.143

Framework and version
vue 3.3.4

How can I deactivate the console outputs of Scale?
These are extremely annoying when developing. I can't see my own developer outputs properly.
If this is not possible, can you please implement it?

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: chrome
  • Version: 119.0.6045.199

Additional context
image

@tomkroschwald tomkroschwald added the support Asking for help label Dec 1, 2023
@felix-ico
Copy link
Collaborator

Hi @tomkroschwald, at the moment we don't have the option to deactivate those logs for beta components. As a workaround you could use the filtering function in the browser you use for development:

Screenshot 2023-12-04 at 15 31 52

(a hackier workaround could be to redefine window.console.info = () => {} on DEV in your project to suppress those, but you would possibly miss out on console.info() called by some other library...)

@tomkroschwald
Copy link
Author

Thanks for the idea. This is now my solution:

const info = window.console.info;
window.console.info = function () {
    const args = Array.from(arguments);
    if (args[0] == "%c scale – β ") return;
    info(...args);
};

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

No branches or pull requests

2 participants