Пример #1
0
 public static function debug($_str)
 {
     if (defined('IS_SQL_PRINT') && IS_SQL_PRINT) {
         print $_str;
         print "\n";
     } else {
         if (class_exists('W2Log')) {
             W2Log::debug($_str);
         }
     }
 }
Пример #2
0
 /**
  * 输出ERROR级别的日志
  */
 public static function error()
 {
     $_a = func_get_args();
     W2Log::log(3, $_a, true);
 }