shadergradient icon indicating copy to clipboard operation
shadergradient copied to clipboard

Add development-only logging for material initialization

Open anonymousRecords opened this issue 11 months ago • 3 comments

Description

related #116

  • I added a conditional logging mechanism for debugging in the development environment.

anonymousRecords avatar Jan 07 '25 05:01 anonymousRecords

I was thinking about some methods to hide & show logs with special controls.

like loglevel

ruucm avatar Jan 08 '25 00:01 ruucm

@ruucm I reviewed the recommended loglevel library. However, after analyzing the issue, I concluded that "performance measurement" is a more important criterion. Therefore, I decided to change it based on the debug pattern.

default

image

debug.disableAll()

image image

anonymousRecords avatar Jan 08 '25 11:01 anonymousRecords

is this possible to use in next.js? I'm worried about using the window value

and how about following this structure of logs?

https://github.com/chrisgoringe/cg-use-everywhere/blob/main/js/use_everywhere_utilities.js

ruucm avatar Jan 26 '25 10:01 ruucm

merged thanks @anonymousRecords

ruucm avatar Jul 02 '25 04:07 ruucm