xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
702 stars 282 forks source link

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

Open vaziliybober opened 3 months ago

vaziliybober commented 3 months ago

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

Thank you!

paireks commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

@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

vaziliybober commented 1 month ago

@xeolabs any progress on this?