Answers for "log generate in magento2"

PHP
1

logger magento2

$writer = new ZendLogWriterStream(BP . '/var/log/test.log');
$logger = new ZendLogLogger();
$logger->addWriter($writer);
$logger->info('Your text message');
Posted by: Guest on June-08-2021

Browse Popular Code Answers by Language