Skip to content

Conversation

Timeless0911
Copy link
Contributor

Summary

Support loglevel cli options for Rslib.

Related Links

https://rsbuild.rs/config/log-level

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Sep 22, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit c7938dc
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/68d2522fe5fe8f0008aa80b1
😎 Deploy Preview https://deploy-preview-1238--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Timeless0911 Timeless0911 marked this pull request as ready for review September 23, 2025 07:54
@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 07:54
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the logLevel CLI option to Rslib, allowing users to control log verbosity during build operations. The implementation follows Rsbuild's log level configuration pattern.

  • Adds --log-level CLI flag with support for info, warn, error, and silent levels
  • Integrates log level configuration throughout the CLI commands and plugin system
  • Includes comprehensive documentation in both English and Chinese

Reviewed Changes

Copilot reviewed 24 out of 25 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/docs/*/guide/basic/cli.mdx Documents the new --log-level CLI option
website/docs/*/config/rsbuild/log-level.mdx Adds dedicated documentation page for logLevel configuration
website/docs/*/config/rsbuild/index.mdx Updates configuration overview to include logLevel
website/docs/*/config/rsbuild/_meta.json Adds logLevel to navigation metadata
tests/integration/cli/log-level/* Adds integration tests for log level functionality
packages/plugin-dts/src/* Updates DTS plugin to respect log level settings
packages/core/src/utils/logger.ts Adds 'rsbuild' to debug environment detection
packages/core/src/config.ts Integrates logLevel into Rsbuild configuration
packages/core/src/cli/* Implements CLI option parsing and log level setup
.vscode/settings.json Updates schema paths for VSCode integration
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Timeless0911 Timeless0911 merged commit de065fa into main Sep 23, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the loglevel branch September 23, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants