Esempio n. 1
0
        private static string LogToString(LogMassage logMass)
        {
            string st;

            st = "in " + logMass.LogTime.ToString() + " : " + logMass.MassageLog;
            return(st);
        }
Esempio n. 2
0
        public static void AddPlayerLog(string PlayerId, string LogBody)
        {
            LogMassage NewMassage = new LogMassage();

            NewMassage.MassageLog = LogBody;
            NewMassage.LogTime    = "";
            //NewMassage.LogTime = DateTime.Now.ToString();
            NewMassage.PlayerConnectionTime = ""; // ConnectedPlayersList.ReturnPlayerConnectionTime(PlayerId).ToString();
            AddStringLog(" palyer Id " + PlayerId + ". ", LogBody);
            //logDataBase.GameLog3.Add(NewMassage);
            //logDataBase.SaveChanges();
        }
Esempio n. 3
0
        public static void AddLog(string LogBody)
        {
            LogMassage NewMassage = new LogMassage();

            NewMassage.MassageLog = LogBody;
            NewMassage.LogTime    = "";
            //NewMassage.LogTime = DateTime.Now.ToString();

            AddStringLog(NewMassage.LogTime, LogBody);
            //logDataBase.GameLog3.Add(NewMassage);
            //logDataBase.SaveChanges();
        }