stackofcodes
Home
Categories
Popular Codes
Articles
/
PHP
/
Zend
/
Magento2 zend log
Magento2 zend log
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'); ?>
1
Mage log equivalent magento 2
\Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class)->debug('Your message here');
0
Share
Similar codes
1 vote
202 views
1 answer
Zend redirect to url
PHP
Zend
0 vote
224 views
1 answer
Zend Framework 2 in a ZF1 project
PHP
Zend
Share