Skip to content

Instantly share code, notes, and snippets.

@kesonno
Created September 25, 2018 08:10
Show Gist options
  • Save kesonno/029fe9159092c2d427b050747d2cfc07 to your computer and use it in GitHub Desktop.
Save kesonno/029fe9159092c2d427b050747d2cfc07 to your computer and use it in GitHub Desktop.
Magento 2 logging q&d
$logger = \Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class);
$logger->debug('$randomString = "' . $randomString . '"');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment