Skip to content

Instantly share code, notes, and snippets.

@aleron75
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aleron75/7032ab278c863cd93cbe to your computer and use it in GitHub Desktop.
Save aleron75/7032ab278c863cd93cbe to your computer and use it in GitHub Desktop.
Magento log wrapper function
public function log()
{
$args = func_get_args();
$formattedMsg = call_user_func_array('sprintf', $args);
Mage::log($formattedMsg, null, 'vendor_module.log', Mage::getStoreConfig('path/to/config'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment