Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add development-only logging for material initialization #124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anonymousRecords
Copy link
Contributor

Description

related #116

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

@ruucm
Copy link
Owner

ruucm commented Jan 8, 2025

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

like loglevel

@anonymousRecords
Copy link
Contributor Author

@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

@ruucm
Copy link
Owner

ruucm commented Jan 26, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants