Answers for "activate log in magento 1"

PHP
3

log magento 1

Mage::log('message',null,'logfile.log',true);
Mage::log(print_r($arr, 1), null, 'logfile.log',true);
Posted by: Guest on January-25-2021
0

mage log equivalent magento 2

\Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class)->debug('Your message here');
Posted by: Guest on August-19-2020

Browse Popular Code Answers by Language