'info' | 'warn' | 'error' | 'silent'
'info'
>= 1.4.0
Specify the log level of Rsbuild, the default value is info
.
Set logLevel
to warn
and Rsbuild will only output warn
and error
level logs:
Set logLevel
to error
and Rsbuild will only output error
level logs:
info
: Output all logswarn
: Output warn
and error
level logserror
: Output error
level logssilent
: Do not output any logsCurrently, you cannot set different log levels for each Rsbuild instance, because Rsbuild has a global shared logger instance, and all Rsbuild instances will share this logger instance.