Last active
January 31, 2017 09:27
-
-
Save nicolaspernot/a4d6decce6bb70f71411576bf512a531 to your computer and use it in GitHub Desktop.
Print $var in log for debug meaning (otherwise use Dependance Injection instead of Object Manager)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @var \Psr\Log\LoggerInterface $logger */ | |
$logger = $this->_objectManager->create('\Psr\Log\LoggerInterface'); | |
$logger->info($var); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment