Answers for "how to read logs magento"

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