Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SetupLoggerFactory.php
Go to the documentation of this file.
1 <?php
8 
13 {
21  public function create($channelName = 'setup-cron')
22  {
23  $logger = new \Monolog\Logger($channelName);
24  $path = BP . '/var/log/update.log';
25  $logger->pushHandler(new \Monolog\Handler\StreamHandler($path));
26  return $logger;
27  }
28 }
$logger
const BP
Definition: autoload.php:14