示例#1
0
 public LogEntry(string message, string name, GenericException e)
 {
     _type    = "";
     _subType = "";
     _name    = name;
     // Generate a _name if one is not provided
     if (String.IsNullOrEmpty(name))
     {
         _name = GenerateName();
     }
     _time      = DateTime.Now;
     _message   = CleanMessage(message);
     _exception = e;
 }
示例#2
0
 public LogEntry( string type, string subType, string name, string message, GenericException e )
 {
     _type = type;
     _subType = subType;
     _name = name;
     // Generate a _name if one is not provided
     if (String.IsNullOrEmpty(name))
     {
         _name = GenerateName();
     }
     _time = new DateTime( DateTime.Now.Ticks );
     _message = CleanMessage( message );
     _exception = e;
 }