logLevel
- Type:
'info' | 'warn' | 'error' | 'silent' - Default:
'info' - Version:
>= 1.4.0
Sets the Rsbuild log level. Defaults to info.
Tip
This option also affects Rsbuild's log output in the browser. You can override this behavior through the client.logLevel option.
Example
When logLevel is set to warn, Rsbuild only outputs warning and error logs:
rsbuild.config.ts
When logLevel is set to error, Rsbuild only outputs error logs:
rsbuild.config.ts
Optional values
info: Output all logs.warn: Output warning and error logs.error: Output error logs.silent: Do not output any logs.
Note
In debug mode, Rsbuild always outputs all logs.
Limitations
Rsbuild currently cannot set different log levels per instance because all instances share a global logger.

