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; }
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; }