Exemplo n.º 1
0
 public override string ToString()
 {
     System.Text.StringBuilder str = new System.Text.StringBuilder();
     str.Append("<b>LogGUID:</b> " + LogGUID + "<br>");
     str.Append("<b>LogType:</b> " + LogTypeKey + "<br>");
     str.Append("<b>UserID:</b> " + LogUserID.ToString() + "<br>");
     str.Append("<b>Username:</b> " + LogUserName + "<br>");
     str.Append("<b>PortalID:</b> " + LogPortalID.ToString() + "<br>");
     str.Append("<b>PortalName:</b> " + LogPortalName + "<br>");
     str.Append("<b>CreateDate:</b> " + LogCreateDate.ToString() + "<br>");
     str.Append("<b>ServerName:</b> " + LogServerName + "<br>");
     str.Append(LogProperties.ToString());
     return(str.ToString());
 }
Exemplo n.º 2
0
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteStartElement("log");
     writer.WriteAttributeString("LogGUID", LogGUID);
     writer.WriteAttributeString("LogFileID", LogFileID);
     writer.WriteAttributeString("LogTypeKey", LogTypeKey);
     writer.WriteAttributeString("LogUserID", LogUserID.ToString());
     writer.WriteAttributeString("LogUserName", LogUserName);
     writer.WriteAttributeString("LogPortalID", LogPortalID.ToString());
     writer.WriteAttributeString("LogPortalName", LogPortalName);
     writer.WriteAttributeString("LogCreateDate", LogCreateDate.ToString());
     writer.WriteAttributeString("LogCreateDateNum", LogCreateDateNum.ToString());
     writer.WriteAttributeString("BypassBuffering", BypassBuffering.ToString());
     writer.WriteAttributeString("LogServerName", LogServerName);
     writer.WriteAttributeString("LogConfigID", LogConfigID);
     LogProperties.WriteXml(writer);
     writer.WriteEndElement();
 }