コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: LogProperties.cs プロジェクト: misterPaul0/Curt
        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"));
        }
コード例 #5
0
        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"));
        }
コード例 #6
0
 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);
     }
 }
コード例 #7
0
ファイル: LogInfo.cs プロジェクト: biganth/Curt
 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);
     }
 }
コード例 #8
0
ファイル: EventLogController.cs プロジェクト: biganth/Curt
 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);
 }
コード例 #9
0
 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);
 }
コード例 #10
0
 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);
 }