Create cusom log file in magento

, , No Comments
  • Magento provide support to create own magento log files.It have the function for this purpose in
    • app/code/Mage.php
  • public static function log($message, $level = null, $file = '') {}
  • We just need to call the above function when we need to create log file or storing information in custom log files.
    • For example:
    • Mage::log('My log entry', null, 'mylogfile.log');

0 comments:

Post a Comment