mageno 2 log code example
Example 1: magento2 zend log
addWriter($writer);
$logger->info('Your text message');
?>
Example 2: mage log equivalent magento 2
\Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class)->debug('Your message here');