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

How can I disable logging in console of the library #1465

Open
vaziliybober opened this issue Apr 23, 2024 · 3 comments
Open

How can I disable logging in console of the library #1465

vaziliybober opened this issue Apr 23, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@vaziliybober
Copy link

Hello. How can I disable messages in console like "Creating VBOInstancingTrianglesLayer" or "[xeokit plugin XKTLoader]: Loading .xkt V10"?

Thank you!

@vaziliybober vaziliybober added the question Further information is requested label Apr 23, 2024
@paireks
Copy link
Member

paireks commented Apr 29, 2024

Hello @vaziliybober :) maybe I'm missing something, but I cannot see a way to disable all console.logs coming from sdk. I can see there are hacky ways to e.g. disable all console.logs, but I think they shouldn't been used. Can we ask you what is the reason for such request?

@xeolabs xeolabs self-assigned this Apr 29, 2024
@xeolabs
Copy link
Member

xeolabs commented Apr 29, 2024

We don't have a way to globally disable them, and there are some still loggings that are directly using console.log.

I'll take a look at this tomorrow evening.

@vaziliybober
Copy link
Author

@paireks well I think it's a common practive to try and keep your console clean so that you don't miss important error/warning/info messages. If libraries log to console and provide you with no option to disable that behaviour, then their messages add up and it becomes difficult to use the console because there are so many messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants