public void LogIoCStartEventToDb(string str) { var exp = new ServerEventLogEntity() { description = str, eventLevel = EnumBigEventType.ServerInfo.GetDescription(), type = EnumServerInfoType.IoC.GetDescription(), time = DateTime.Now }; DbUtilityFactory.GetDbUtility().Add(exp); }
public void LogErrorToDb(Exception e, int operatorID = -999) { var exp = new ServerEventLogEntity() { description = e.Message, thread = e.Source, time = DateTime.Now, type = e.GetType().Name, eventLevel = EnumBigEventType.Exception.GetDescription(), operatorID = operatorID }; DbUtilityFactory.GetDbUtility().Add(exp); }