Skip to content

feat(core): expose init_logger publicly - #3049

Open
jhult wants to merge 1 commit into
rust-lang:mainfrom
jhult:feature/public-init-logger
Open

jhult wants to merge 1 commit into
rust-lang:mainfrom
jhult:feature/public-init-logger

Conversation

@jhult

@jhult jhult commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Preprocessor authors can now call mdbook_core::utils::init_logger() to use mdBook's logger configuration (MDBOOK_LOG env var, INFO default, silenced noisy deps like handlebars/html5ever).

Closes #2049

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Mar 9, 2026
@jhult
jhult force-pushed the feature/public-init-logger branch from 969e645 to 67494da Compare March 9, 2026 02:07
@jhult
jhult force-pushed the feature/public-init-logger branch from 67494da to 1d5450e Compare March 16, 2026 19:25
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

Preprocessor authors can now call `mdbook_core::utils::init_logger()` to use mdBook's logger configuration (`MDBOOK_LOG` env var, `INFO` default, silenced noisy deps like handlebars/html5ever).

Closes rust-lang#2049
@jhult
jhult force-pushed the feature/public-init-logger branch from 6e8adf7 to fd4cc52 Compare May 4, 2026 01:35
@rustbot

rustbot commented May 4, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@jhult

jhult commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

@GuillaumeGomez, can you take a look at this?

@GuillaumeGomez

Copy link
Copy Markdown
Member

That needs to be documented too.

@GuillaumeGomez GuillaumeGomez added S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. and removed S-waiting-on-review Status: waiting on a review labels Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exposing init_logger to the public API for uniform logging across preprocessors

3 participants