Ejemplo n.º 1
0
    private void HandleLog(string condition, string stackTrace, LogType type)
    {
        TLogger.LogFile(condition);
        bool flag = type == LogType.Exception || type == LogType.Error;

        if (flag)
        {
            TLogger.LogFile(stackTrace);
        }
    }
Ejemplo n.º 2
0
    private static void PrintAll()
    {
        bool flag = TLogger.LogBuff == null || TLogger.LogBuff.Count < 1;

        if (!flag)
        {
            string        value         = TLogger.LogBuff.Dequeue();
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.AppendLine(value);
            while (TLogger.LogBuff.Count > 0)
            {
                value = TLogger.LogBuff.Dequeue();
                stringBuilder.AppendLine(value);
            }
            TLogger.LogFile(stringBuilder.ToString());
        }
    }