magento 2 logging
<?php class Log { protected $logger; public function __construct(\Psr\Log\LoggerInterface $logger) { $this->logger = $logger; } } $this->logger->info($message); $this->logger->debug($message);