public void AddLog(string propertyName, string propertyValue, PortalSettings portalSettings, int userID, string logType) { var properties = new LogProperties(); var logDetailInfo = new LogDetailInfo { PropertyName = propertyName, PropertyValue = propertyValue }; properties.Add(logDetailInfo); AddLog(properties, portalSettings, userID, logType, false); }
public void AddLog(string PropertyName, string PropertyValue, PortalSettings _PortalSettings, int UserID, string LogType) { //Used for custom/on-the-fly log types LogProperties objProperties = new LogProperties(); LogDetailInfo objLogDetailInfo = new LogDetailInfo(); objLogDetailInfo.PropertyName = PropertyName; objLogDetailInfo.PropertyValue = PropertyValue; objProperties.Add(objLogDetailInfo); AddLog(objProperties, _PortalSettings, UserID, LogType, false); }
public void AddLog(string PropertyName, string PropertyValue, PortalSettings _PortalSettings, int UserID, EventLogType objLogType) { //Used for DotNetNuke native log types LogProperties objProperties = new LogProperties(); LogDetailInfo objLogDetailInfo = new LogDetailInfo(); objLogDetailInfo.PropertyName = PropertyName; objLogDetailInfo.PropertyValue = PropertyValue; objProperties.Add(objLogDetailInfo); AddLog(objProperties, _PortalSettings, UserID, objLogType.ToString(), false); }
public void ReadXml(XmlReader reader) { do { reader.ReadStartElement("LogProperty"); //Create new LogDetailInfo object var logDetail = new LogDetailInfo(); //Load it from the Xml logDetail.ReadXml(reader); //Add to the collection Add(logDetail); } while (reader.ReadToNextSibling("LogProperty")); }
public void AddProperty(string PropertyName, string PropertyValue) { try { if (PropertyName.Length > 50) { PropertyName = PropertyName.Substring(0, 50); } if (PropertyValue.Length > 500) { PropertyValue = "(TRUNCATED TO 500 CHARS): " + PropertyValue.Substring(0, 500); } LogDetailInfo objLogDetailInfo = new LogDetailInfo(); objLogDetailInfo.PropertyName = PropertyName; objLogDetailInfo.PropertyValue = PropertyValue; _LogProperties.Add(objLogDetailInfo); } catch (Exception exc) { Exceptions.Exceptions.ProcessPageLoadException(exc); } }
public void AddProperty(string PropertyName, string PropertyValue) { try { if (PropertyValue == null) { PropertyValue = string.Empty; } if (PropertyName.Length > 50) { PropertyName = PropertyName.Substring(0, 50); } if (PropertyValue.Length > 500) { PropertyValue = "(TRUNCATED TO 500 CHARS): " + PropertyValue.Substring(0, 500); } var objLogDetailInfo = new LogDetailInfo(); objLogDetailInfo.PropertyName = PropertyName; objLogDetailInfo.PropertyValue = PropertyValue; _LogProperties.Add(objLogDetailInfo); } catch (Exception exc) { Exceptions.Exceptions.LogException(exc); } }
public void AddLog(string propertyName, string propertyValue, PortalSettings portalSettings, int userID, string logType) { var properties = new LogProperties(); var logDetailInfo = new LogDetailInfo {PropertyName = propertyName, PropertyValue = propertyValue}; properties.Add(logDetailInfo); AddLog(properties, portalSettings, userID, logType, false); }