Skip to content

feat(core): expose init_logger publicly#3049

Open
jhult wants to merge 1 commit intorust-lang:masterfrom
jhult:feature/public-init-logger
Open

feat(core): expose init_logger publicly#3049
jhult wants to merge 1 commit intorust-lang:masterfrom
jhult:feature/public-init-logger

Conversation

@jhult
Copy link
Copy Markdown
Contributor

@jhult jhult commented Mar 9, 2026

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.

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 1d5450e to 6e8adf7 Compare April 22, 2026 00:28
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 22, 2026

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: waiting on a review

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

2 participants