M2+Zend+logger

PHOTO EMBED

Tue Mar 02 2021 07:34:27 GMT+0000 (Coordinated Universal Time)

Saved by @deepaksingh007

$writer+=+new+\Zend\Log\Writer\Stream(BP+.+'/var/log/test.log');
$logger+=+new+\Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('Your+text+message');
content_copyCOPY

undefined