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 :: php array dot notation 
Php :: modifier un formulaire php 
Php :: IlluminateDatabaseQueryException SQLSTATE[HY000]: General error: 3780 Referencing column 
Php :: wp woocommerce change product tags to checbox 
Php :: javatpoint php 
Php :: simple-phpunit --version handling the phpunit-setup event returned with error code 127 on ubuntu 
Php :: Collapse all codes in PHP Storm IntelliJ 
Php :: tcpdf Array and string offset access syntax with curly braces is deprecated 
Php :: crypt (PHP 4, PHP 5, PHP 7, PHP 8) crypt — One-way string hashing 
Php :: apache/2.4.53 (win64) openssl/1.1.1n php/8.1.5 server at localhost port 80 
Php :: laravel request allFiles 
Php :: New in initializers - PHP 8.1 
Php :: ascii vrednosti php 
Php :: remove public path from url laravel 
Php :: php cgi file not fount linux 
Php :: PHP SimpleXML - Get Node/Attribute Values 
Php :: laravel gigapay list invoice 
Php :: automatically make created_by and updated_by using observer laravel 
Php :: php specific function to Unflatten array 
Php :: upload video file in mysqli using php 
Php :: php Prefix Sum of Matrix (Or 2D Array) 
Php :: echo $path not showing composer 
Php :: search a file name and open that file phpstrom 
Php :: multidimensional session-array 
Php :: PHP how to skip file upload if file already exist 
Php :: PHP (php 7.3.5) sample 
Php :: findmany laravel 
Php :: laravel query with optional filter 
Php :: HASHING in php double scripting 
Php :: PHP Installation broken - shows strange php code as response 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =