How does three.js turn off log output?

recently learned three.js , made a demo, page runs normally , but the browser"s console will have warning and three.js itself introduced to print logs, how to turn off three.js log printing without affecting other log output?

clipboard.png


Click default levels to cancel warnings, and the output of warning will not be displayed.

take a look at the source code
https://github.com/mrdoob/thr...

console.warn prints warnings directly, cannot be turned off, and can only filter

.

or filter the output of THREE with regularization


use the browser to filter. Save time

Menu