mPDF set logger

Created on 10 November 2023, about 1 year ago
Updated 19 January 2024, 11 months ago

Problem/Motivation

There are sometimes errors when using mPDF and it would be good to log those some where.

Steps to reproduce

Proposed resolution

Use Drupal's logger.
https://mpdf.github.io/installation-setup/logging.html

$logger = \Drupal::logger('pdf_api');
$mpdf = new Mpdf\Mpdf();
$mpdf->setLogger($logger);

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024