protected override void Write(LogEventInfo aLogEvent)
 {
     _logs.Add(Layout.Render(aLogEvent));
     while (_logs.Count > MaxLogs)
     {
         _logs.RemoveAt(0);
     }
 }
Пример #2
0
 public void NewLog(GuildLogData log)
 {
     LogList.Add(log);
     if (LogList.Count > ConfigEnvSet.GetInt("Guild.GuildLogCountMax"))
     {
         LogList.RemoveAt(0);
     }
 }
 public void PushLog(EnemyLogData log)
 {
     if (LogList.Count >= DataHelper.MaxMailNum)
     {
         LogList.RemoveAt(0);
     }
     IsHaveNewLog = true;
     LogList.Add(log);
 }
Пример #4
0
        public void PushCombatLog(CombatLogData log)
        {
            if (LogList.Count >= DataHelper.CombatLogCountMax)
            {
                LogList.RemoveAt(0);
            }

            LogList.Add(log);

            if (log.Type == EventType.PassiveChallenge)
            {
                IsHaveNewLog = true;
            }
        }