Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

magento 2 custom log file

$writer = new end_Log_Writer_Stream(BP . '/var/log/custom.log');
$logger = new end_Log();
$logger->addWriter($writer);
$logger->info('text message');
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #magento #custom #log #file
ADD COMMENT
Topic
Name
2+1 =