public void WriteGeneralLog(long accountId, string ipAddress, long? characterId, GeneralLogType logType, string logData) { try { using (OpenNosContext context = DataAccessHelper.CreateContext()) { GeneralLog log = new GeneralLog { AccountId = accountId, IpAddress = ipAddress, Timestamp = DateTime.Now, LogType = logType.ToString(), LogData = logData, CharacterId = characterId }; context.GeneralLog.Add(log); context.SaveChanges(); } } catch (Exception e) { Logger.Error(e); } }
public void WriteGeneralLog(long accountId, string ipAddress, long?characterId, GeneralLogType logType, string logData) => throw new NotImplementedException();