private static void LogEvent(PortalAliasInfo portalAlias, EventLogController.EventLogType logType) { int userId = UserController.GetCurrentUserInfo().UserID; var eventLogController = new EventLogController(); eventLogController.AddLog(portalAlias, PortalController.GetCurrentPortalSettings(), userId, "", logType); }
private static void AddLog(PackageInfo package, EventLogController.EventLogType logType) { EventLogController.Instance.AddLog(package, PortalController.Instance.GetCurrentPortalSettings(), UserController.Instance.GetCurrentUserInfo().UserID, "", logType); }
private void AddMessage(RoleInfo roleInfo, EventLogController.EventLogType logType) { EventLogController.Instance.AddLog(roleInfo, PortalController.Instance.GetCurrentPortalSettings(), UserController.Instance.GetCurrentUserInfo().UserID, "", logType); }
private static void AddLog(IFileInfo fileInfo, int userId, EventLogController.EventLogType logType) { if (fileInfo == null) { return; } EventLogController.Instance.AddLog(fileInfo, PortalSettings.Current, userId, "", logType); }
private static void AddLog(PackageInfo package, EventLogController.EventLogType logType) { var objEventLog = new EventLogController(); objEventLog.AddLog(package, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", logType); }
private void AddMessage(RoleInfo roleInfo, EventLogController.EventLogType logType) { var eventLogController = new EventLogController(); eventLogController.AddLog(roleInfo, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", logType); }
void AddLog(string message, EventLogController.EventLogType logType) { var log = new LogInfo(); log.AddProperty("Module", ModuleConfiguration.ModuleDefinition.DefinitionName); log.AddProperty("PortalId", PortalId.ToString()); log.AddProperty("UserId", UserId.ToString()); log.AddProperty("UserEmail", UserInfo.Email); log.AddProperty("RawUrl", Request.RawUrl); log.AddProperty("Message", message); log.LogTypeKey = logType.ToString(); EventLogController.Instance.AddLog(log); }
public static void SaveTabUrl(TabUrlInfo tabUrl, int portalId, bool clearCache) { //var portalAliasId = (tabUrl.PortalAliasUsage == PortalAliasUsageType.Default) ? Null.NullInteger : tabUrl.PortalAliasId; int portalAliasId = tabUrl.PortalAliasId; if (portalAliasId > 0) { tabUrl.CultureCode = PortalAliasController.Instance.GetPortalAliasByPortalAliasID(portalAliasId).CultureCode; } EventLogController.EventLogType saveLog = EventLogController.EventLogType.TABURL_CREATED; if (tabUrl.HttpStatus == "200") { saveLog = EventLogController.EventLogType.TABURL_CREATED; } else { //need to see if sequence number exists to decide if insert or update List <TabUrlInfo> t = TabController.Instance.GetTabUrls(portalId, tabUrl.TabId); TabUrlInfo existingSeq = t.FirstOrDefault(r => r.SeqNum == tabUrl.SeqNum); if (existingSeq == null) { saveLog = EventLogController.EventLogType.TABURL_CREATED; } } DataProvider.Instance().SaveTabUrl(tabUrl.TabId, tabUrl.SeqNum, portalAliasId, (int)tabUrl.PortalAliasUsage, tabUrl.Url, tabUrl.QueryString, tabUrl.CultureCode, tabUrl.HttpStatus, tabUrl.IsSystem, UserController.Instance.GetCurrentUserInfo().UserID); EventLogController.Instance.AddLog("tabUrl", tabUrl.ToString(), PortalController.Instance.GetCurrentSettings() as IPortalSettings, UserController.Instance.GetCurrentUserInfo().UserID, saveLog); if (clearCache) { DataCache.RemoveCache(string.Format(DataCache.TabUrlCacheKey, portalId)); TabController.Instance.ClearCache(portalId); } }
private void LogEvent(EventLogController.EventLogType eventType, PortalGroupInfo portalGroup, PortalInfo portal) { try { var log = new LogInfo { BypassBuffering = true, LogTypeKey = eventType.ToString() }; log.LogProperties.Add(new LogDetailInfo("PortalGroup:", portalGroup.PortalGroupName)); log.LogProperties.Add(new LogDetailInfo("PortalGroupID:", portalGroup.PortalGroupId.ToString())); if (portal != null) { log.LogProperties.Add(new LogDetailInfo("Portal:", portal.PortalName)); log.LogProperties.Add(new LogDetailInfo("PortalID:", portal.PortalID.ToString())); } LogController.Instance.AddLog(log); } catch (Exception exc) { Logger.Error(exc); } }
private static void LogEvent(PortalAliasInfo portalAlias, EventLogController.EventLogType logType) { int userId = UserController.Instance.GetCurrentUserInfo().UserID; EventLogController.Instance.AddLog(portalAlias, PortalController.Instance.GetCurrentPortalSettings(), userId, string.Empty, logType); }
protected void LogToDnnEventLog(string msg, EventLogController.EventLogType logType) { eventLog.AddLog("DNNspot-Store", msg, PortalSettings, UserId, logType); }