log magento 1 code example
Example 1: log magento 1
Mage::log('message',null,'logfile.log',true);
Example 2: mage log equivalent magento 2
\Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class)->debug('Your message here');