Exposing init_logger
to the public API for uniform logging across preprocessors
#2049
Labels
C-enhancement
Category: Enhancement or feature request
Problem
Currently, all preprocessors need to call their own logging library. As calls to preprocessors are done within the main mdBook process, it would make sense to have a uniform logger across all preprocessors, so that when they log messages, it does not look weird compared to mdBook's own logging.
Proposed Solution
Move
main::init_logger
toutils::init_logger
and make it public, so that people can opt in for the same logger as mdBook.mdBook/src/main.rs
Lines 97 to 121 in efb671a
Notes
No response
The text was updated successfully, but these errors were encountered: