Skip to content

new option: weasyprint_log_path#100

Open
michalfapso wants to merge 1 commit intodomWalters:developfrom
michalfapso:fea_option_weasyprint_log_path
Open

new option: weasyprint_log_path#100
michalfapso wants to merge 1 commit intodomWalters:developfrom
michalfapso:fea_option_weasyprint_log_path

Conversation

@michalfapso
Copy link
Copy Markdown

For setting an output path for the weasyprint log for easier debugging of weasyprint issues.

Although there was already the following code in plugin.py:

from weasyprint.logger import LOGGER
if self._options.verbose:
    LOGGER.setLevel(logging.DEBUG)
    self._logger.setLevel(logging.DEBUG)
else:
    LOGGER.setLevel(logging.ERROR)

If I understand it correctly, this is supposed to show the weasyprint log in the mkdocs output when verbose: true, but I don't see it there. That's why I made this new option for writing it to a separate file.

@michalfapso michalfapso force-pushed the fea_option_weasyprint_log_path branch 2 times, most recently from d158034 to 8c4d92a Compare October 30, 2025 20:03
@michalfapso michalfapso force-pushed the fea_option_weasyprint_log_path branch from 8c4d92a to e5de977 Compare October 30, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant