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); } } }
/** * 输出ERROR级别的日志 */ public static function error() { $_a = func_get_args(); W2Log::log(3, $_a, true); }