Search
 
SCRIPT & CODE EXAMPLE
 

PHP

mage log magento 2

<?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
?>
  
Comment

mage log magento 2

<?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
?>
Comment

logger magento2

$writer = new endLogWriterStream(BP . '/var/log/test.log');
$logger = new endLogLogger();
$logger->addWriter($writer);
$logger->info('Your text message');
Comment

log magento 1

Mage::log('message',null,'logfile.log',true);
Mage::log(print_r($arr, 1), null, 'logfile.log',true);
Comment

log magento 1

Mage::log('message',null,'nam.log',true);
Comment

mage log equivalent magento 2

MagentoFrameworkAppObjectManager::getInstance()->get(PsrLogLoggerInterface::class)->debug('Your message here');
Comment

PREVIOUS NEXT
Code Example
Php :: assocititive multi array compare php 
Php :: laravel OrderBy on Eloquent whereHas relationship 
Php :: debug bar laravel print array 
Php :: octobercms mail register 
Php :: livewire custom attribute 
Php :: what is carriage return in php 
Php :: try_files $uri $uri/ /index.php?$query_string; 
Php :: Get a list of the arrays keys 
Php :: cakephp group by count 
Php :: status code 301 
Php :: php ifelse 
Php :: phpmailer 
Php :: Full text search laravel mongodb 
Php :: php inverse / arc cosine 
Php :: mysql between all months days even null 
Php :: php preg match 
Php :: Dynamic Carousel in Laravel not working displays only one image 
Php :: woocommerce order get product weight 
Php :: symfony get api data 
Php :: laravel collection shift 
Php :: laravel id generator 
Php :: get the user detail inside the constructor Laravel 
Php :: laravel collection take 
Php :: session in laravel 
Php :: blade format date 
Php :: @yield extends laravel 
Php :: mac os down upgrade php version 
Php :: crud operations in php 
Php :: mage log equivalent magento 2 
Php :: php array_pop with key 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =