mPDF Manual – mPDF functions

setLogger

setLogger – inject mPDF and its service classes with logging implementing PSR-3

Description

\Mpdf\Mpdf::setLogger(\Psr\Log\LoggerInterface $logger)

Parameters

$logger

An object instance implementing \Psr\Log\LoggerInterface.

See Also

Fork me on GitHub