Exemple #1
0
        public static void toLog(StringBuilder sb, int type)
        {
            string str = sb.ToString();

            if (ShineSetting.logNeedConsole)
            {
                doPrintToConsole(str, SLogType.isErrorLog(type));
            }

            toSendLog(type, str);
        }
Exemple #2
0
        public static void toLog(String str, int type)
        {
            if (!ShineSetting.needLog)
            {
                return;
            }

            if (ShineSetting.logNeedConsole)
            {
                doPrintToConsole(str, SLogType.isErrorLog(type));
            }

            toSendLog(type, str);
        }