-
Notifications
You must be signed in to change notification settings - Fork 168
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
[Feature]: Support loglevel in rsbuild #1582
Comments
Try this: import { logger } from '@rsbuild/core';
logger.level = 'xxx'; |
The above method will affect all instances. We may need to provide a way to configure logLevel for different instances. |
I want that instance is independent, for example, I have created two rsbuild instance, if use import { logger } from '@rsbuild/core';
logger.level = 'xxx'; The another will be influenced also. |
Yes, you are right. |
This may be difficult to achieve because the code in Rsbuild does not get the logger from the Rsbuild instance, but directly imports the logger module. |
What problem does this feature solve?
We can custom loglevel in rsbuild and configure different level in different instance.
What does the proposed API look like?
maybe dev.loglevel, output.loglevel.
The text was updated successfully, but these errors were encountered: