Hello,
On https://www.phpdocx.com/documentation/introduction/tutorial (Appendix: debugging options section) you can read how to enable logging messages. You just need to inject a PSR-3 logger.
Anyway, logging messages illustrate how the DOCX is being created but they won't help to improve the performance. Please check the following information about improving the perfomance:
- https://www.phpdocx.com/documentation/cookbook/convert-html-to-word
- https://www.phpdocx.com/documentation/cookbook/improve-phpdocx-performance
The most important tips are using phpdocx 9.5 or newer, use php 7 or newer and use several HTML contents instead of a huge HTML. Because the HTML needs to be parsed, analyzed and transformed, so huge HTML contents may take more time to be transformed.
Regards.