vatro / svelthree

Create three.js content using Svelte components.
https://svelthree.dev
MIT License
485 stars 15 forks source link

How do I disable the console messages? #36

Closed braebo closed 3 years ago

braebo commented 3 years ago

Thanks for Svelthree!

I was wondering how I might disable the console messages from Svelthree. It's rather noisy 😅

vatro commented 3 years ago

true! 😅 that's due to my early development needs.

The easiest way would be to either completely disable info level logs (as those are the noisy ones) or purge them via e.g. a terser-plugin.

vatro commented 3 years ago

Closing this. I'm aware that the logging is being somewhat non-optimal atm, will think about a better solution in future (like setting --verbose true / false in dev mode or similar). Suggestions and advice are always welcome!

mate-h commented 2 years ago

Screenshot 2022-07-28 at 12 17 17 Using negated console filter -SVELTHREE seems to do the job!

vatro commented 2 years ago

Screenshot 2022-07-28 at 12 17 17

Using negated console filter -SVELTHREE seems to do the job!

cool, wasn't aware of this possibility! Newer versions have completely different handling of logs (using -verbose arg), but this is still a TODO, needs to be made the correct way, conditional logs should be completely stripped from output if compiled without -verbose.