isLogToDisplay() public static method

public static isLogToDisplay ( )
Example #1
0
 public function getList() {
     try {
         return $this->transactionList->getHtml(10);
     } catch (Exception $e) {
         if (Gpf_Log::isLogToDisplay()) {
             Gpf_Log::critical('Report list, getHtml exception: ' . $e->getMessage());
         } else { 
             Gpf_Log::addLogger(Gpf_Log_LoggerDisplay::TYPE, Gpf_Log::CRITICAL);
             Gpf_Log::critical('Report list, getHtml exception: ' . $e->getMessage());
             Gpf_Log::disableType(Gpf_Log_LoggerDisplay::TYPE);
         }
         throw $e;
     }
 }