Answers for "magento2 debug log"

PHP
1

logger magento2

$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('Your text message');
Posted by: Guest on June-08-2021

Browse Popular Code Answers by Language