Answers for "mageento2 zend log"

PHP
1

magento2 zend log

<?php
  $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/MYLOGFILE.log');
  $logger = new \Zend\Log\Logger();
  $logger->addWriter($writer);
  $logger->info('Your text message');
?>
Posted by: Guest on May-17-2020

Browse Popular Code Answers by Language