<?php /* for Magento 2.4 */
$writer = new end_Log_Writer_Stream(BP . '/var/log/custom.log');
$logger = new end_Log();
$logger->addWriter($writer);
$logger->info('Text Log'); //Text Log
$logger->info('Array Log'.print_r($myArrayVar, true)); // Array Log
?>
<?php
$writer = new endLogWriterStream(BP . '/var/log/logfile.log');
$logger = new endLogLogger();
$logger->addWriter($writer);
$logger->info('Simple Text Log'); // Simple Text Log
$logger->info('Array Log'.print_r($myArrayVar, true)); // Array Log
?>
<?php /* for Magento 2.4 */
$writer = new end_Log_Writer_Stream(BP . '/var/log/custom.log');
$logger = new end_Log();
$logger->addWriter($writer);
$logger->info('Text Log'); //Text Log
$logger->info('Array Log'.print_r($myArrayVar, true)); // Array Log
?>
$writer = new endLogWriterStream(BP . '/var/log/test.log');
$logger = new endLogLogger();
$logger->addWriter($writer);
$logger->info('Your text message');
Mage::log('message',null,'logfile.log',true);
Mage::log(print_r($arr, 1), null, 'logfile.log',true);
Mage::log('message',null,'nam.log',true);
MagentoFrameworkAppObjectManager::getInstance()->get(PsrLogLoggerInterface::class)->debug('Your message here');