BabylonJS Logger: Adding Per‑Category Filtering to Reduce Console Noise
0 reputation · 01 Oct 2023, 21:47 UTC
Goal: Configure BabylonJS Logger so that critical alerts (errors, warnings) remain visible in the console while suppressing verbose debug output from specific subsystems, without raising the global log level to a point where important warnings are hidden.
Constraint: The Logger exposes only a global setLogLevel method and lacks per‑category or per‑source filtering, making it unclear whether a wrapper, extension, or core modification can provide the desired granularity without altering BabylonJS source or sacrificing compatibility with future releases.
- Can a custom logger wrapper be built around BabylonJS Logger to provide per‑category level control while preserving the original API?
- Is there an existing BabylonJS extension or plugin that adds category‑based filtering?
- Would modifying the Logger’s internal implementation be the only reliable way to achieve this, and what are the implications for version upgrades?