Skip to content

Instantly share code, notes, and snippets.

@berliozd
Created January 15, 2019 09:08
Show Gist options
  • Save berliozd/7236f79e4de474dabe0c23fc7c8b7483 to your computer and use it in GitHub Desktop.
Save berliozd/7236f79e4de474dabe0c23fc7c8b7483 to your computer and use it in GitHub Desktop.
Log PHP trace
<?php
Mage::log('====== CALLING : ' . __CLASS__ . '->' . __FUNCTION__);
array_map(function ($trace) {
Mage::log('- ' . $trace['class'] . ' - FUNCTION : ' . $trace['function'] . ' - LINE : ' . $trace['line']);
}, debug_backtrace());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment