Skip to content

docs: add logging guide#7371

Merged
chenjiahan merged 2 commits intomainfrom
codex/docs-logging-guide
Mar 24, 2026
Merged

docs: add logging guide#7371
chenjiahan merged 2 commits intomainfrom
codex/docs-logging-guide

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Mar 24, 2026

Summary

This PR adds a dedicated logging guide.

It also moves logger-related explanations out of the API and config reference pages, and updates those entries to link back to the new guide.

Related Links

None

Copilot AI review requested due to automatic review settings March 24, 2026 02:20
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the Rsbuild documentation by introducing a dedicated and comprehensive guide on logging. This guide centralizes all information related to Rsbuild's logging mechanisms, including log levels, custom loggers, and accessing logger instances. By consolidating this information, the PR improves clarity and navigability for users seeking to understand and configure logging behavior, while also simplifying existing API and configuration reference pages.

Highlights

  • New Logging Guide: A comprehensive logging guide has been added for Rsbuild, available in both English and Chinese, centralizing information on log levels, custom loggers, and logger instances.
  • Documentation Streamlining: Existing documentation for createLogger, logger, rsbuild.logger, api.logger, customLogger, and logLevel has been streamlined for conciseness.
  • Improved Cross-Referencing: References to logger-related explanations have been removed from API and config pages and replaced with direct links to the new dedicated logging guide, improving navigation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 24, 2026

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: b4c1504
Status: ✅  Deploy successful!
Preview URL: https://a1cc517f.rsbuild-v2.pages.dev
Branch Preview URL: https://codex-docs-logging-guide.rsbuild-v2.pages.dev

View logs

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request does a great job of centralizing logging documentation into a dedicated guide for both English and Chinese versions. The refactoring of existing pages to link to this new guide is clean and improves the overall structure. I've found a few minor issues in the code examples within the new Chinese documentation file that should be addressed to prevent user confusion.

Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c60b88999

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Copy link
Copy Markdown
Contributor

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 introduces a dedicated “Logging” guide (EN/ZH) and refactors existing API/config/plugin docs to link to that guide instead of duplicating logger explanations.

Changes:

  • Add new advanced “Logging” guides in English and Chinese.
  • Update logger-related entries across API/plugin/config docs to link to the new guide.
  • Add the new logging pages to the advanced guide navigation metadata.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
website/docs/en/guide/advanced/logging.mdx Adds new English logging guide covering log levels, custom logger, and access patterns.
website/docs/zh/guide/advanced/logging.mdx Adds new Chinese logging guide covering log levels, custom logger, and access patterns.
website/docs/en/guide/advanced/_meta.json Adds logging to EN advanced guide nav.
website/docs/zh/guide/advanced/_meta.json Adds logging to ZH advanced guide nav.
website/docs/en/plugins/dev/core.mdx Replaces inline api.logger explanation with a link to the logging guide.
website/docs/zh/plugins/dev/core.mdx Replaces inline api.logger explanation with a link to the logging guide.
website/docs/en/api/javascript-api/core.mdx Simplifies createLogger / logger docs and links to the logging guide.
website/docs/zh/api/javascript-api/core.mdx Simplifies createLogger / logger docs and links to the logging guide.
website/docs/en/api/javascript-api/instance.mdx Replaces inline rsbuild.logger explanation with a link to the logging guide.
website/docs/zh/api/javascript-api/instance.mdx Replaces inline rsbuild.logger explanation with a link to the logging guide.
website/docs/en/config/log-level.mdx Updates logLevel description to emphasize “current instance” semantics.
website/docs/zh/config/log-level.mdx Updates logLevel description to emphasize “current instance” semantics.
website/docs/en/config/custom-logger.mdx Links customLogger docs to the logging guide; removes duplicated explanation.
website/docs/zh/config/custom-logger.mdx Links customLogger docs to the logging guide; removes duplicated explanation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/docs/en/guide/advanced/logging.mdx
Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Comment thread website/docs/zh/guide/advanced/logging.mdx
Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Comment thread website/docs/zh/guide/advanced/logging.mdx
Comment thread website/docs/zh/guide/advanced/logging.mdx Outdated
Comment thread website/docs/en/guide/advanced/logging.mdx
@chenjiahan chenjiahan merged commit 2655985 into main Mar 24, 2026
6 checks passed
@chenjiahan chenjiahan deleted the codex/docs-logging-guide branch March 24, 2026 02:38
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