コード例 #1
0
    public static void LogWarning(params object[] args)
    {
        string text = LogSystem.StringBuilderContent(args);

        if (string.IsNullOrEmpty(LogSystem.mstrLastFileLog))
        {
            LogSystem.mstrLastFileLog = text;
        }
        else
        {
            if (LogSystem.mstrLastFileLog.Equals(text))
            {
                return;
            }
            LogSystem.mstrLastFileLog = text;
        }
        if (LogSystem.mbDebugLog)
        {
            Debug.LogWarning(text, null);
        }
        if (LogSystem.mbFileLog)
        {
            LogSystem.TraceFile(1, text);
        }
    }