self::SEVERITY_NOTICE, 'title' => $title, 'extension' => $extension, 'description' => $description, 'code' => $code, 'url' => $url )); } public static function postInfo($extension,$title,$description,$debug=true,$code=0,$url='') { if (!Mage::getStoreConfig('wsalogmenu/wsalog/active')) { return ; } Mage::dispatchEvent('wsalogger_log_mesasge', array('severity'=>self::SEVERITY_MINOR, 'extension' => $extension, 'title' => $title, 'description' => $description, 'code' => $code, 'url' => $url )); } public static function postWarning($extension,$title,$description,$debug=true,$code=0,$url='') { if (!Mage::getStoreConfig('wsalogmenu/wsalog/active')) { return ; } Mage::dispatchEvent('wsalogger_log_mesasge', array('severity'=>self::SEVERITY_MAJOR, 'title' => $title, 'extension' => $extension, 'description' => $description, 'code' => $code, 'url' => $url )); } public static function postCritical($extension,$title,$description,$debug=true,$code=0,$url='') { if (!Mage::getStoreConfig('wsalogmenu/wsalog/active')) { return ; } Mage::dispatchEvent('wsalogger_log_mesasge', array('severity'=>self::SEVERITY_CRITICAL, 'title' => $title, 'extension' => $extension, 'description' => $description, 'code' => $code, 'url' => $url )); } public function getSeverities($severity = null) { return Mage::getSingleton('wsalogger/log')->getSeverities($severity); } }