Skip to content

Instantly share code, notes, and snippets.

@kweij
Last active January 8, 2024 10:07
Show Gist options
  • Save kweij/2f6000d853b699859c4052cb0dbe3f78 to your computer and use it in GitHub Desktop.
Save kweij/2f6000d853b699859c4052cb0dbe3f78 to your computer and use it in GitHub Desktop.
Magento 2 quick logging snippet
\Magento\Framework\App\ObjectManager::getInstance()->get(\Psr\Log\LoggerInterface::class)->critical(\print_r([
'value' => $value,
], true));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment