“Magento 2.4.3 Comment se connecter” Réponses codées

mage log magento 2

<?php /* for Magento 2.4 */
  $writer = new \Zend_Log_Writer_Stream(BP . '/var/log/custom.log');
  $logger = new \Zend_Log();
  $logger->addWriter($writer);
  $logger->info('Text Log'); //Text Log
  $logger->info('Array Log'.print_r($myArrayVar, true)); // Array Log
?>
<?php
  $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/logfile.log');
  $logger = new \Zend\Log\Logger();
  $logger->addWriter($writer);
  $logger->info('Simple Text Log'); // Simple Text Log
  $logger->info('Array Log'.print_r($myArrayVar, true)); // Array Log
?>
  
Itchy Ibex

Enregistreur Magento2

$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('Your text message');
Defeated Dog

Magento 2.4.3 Comment se connecter

$writer = new \Zend_Log_Writer_Stream(BP . '/var/log/test.log');
$logger = new \Zend_Log();
$logger->addWriter($writer);
$logger->info('Your text message');
Bewildered Beetle

Réponses similaires à “Magento 2.4.3 Comment se connecter”

Questions similaires à “Magento 2.4.3 Comment se connecter”

Plus de réponses similaires à “Magento 2.4.3 Comment se connecter” dans PHP

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code