-
-
Save aleron75/f078d7b0c077774c50a3b26000081e49 to your computer and use it in GitHub Desktop.
Quick & dirty logging in Magento 2
This file contains 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
<?php declare(strict_types=1); | |
// ... | |
// FIXME remove this asap; each time we use the OM, a fairy dies | |
\Magento\Framework\App\ObjectManager::getInstance() | |
->get(\Psr\Log\LoggerInterface::class) | |
->debug( | |
'This is a temporary log message', | |
['some debug key' => 'some debug value'] | |
); | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment