/// <summary> /// Default constructor /// </summary> public LogMessage() { // set default properties and force loading some properties from .config file this.MessageType = this.GetType().FullName; this.HostName = System.Environment.MachineName; this.TimeStamp = DateTime.Now; this.ActivityId = this.ActivityId; // force loading of ActivityId from base.Correlation manager this.ApplicationKey = this.ApplicationKey; this.Priority = this.Priority; this.ActiveEnvironment = this.ActiveEnvironment; _callerInfo = new AssemblyVersion().CallerInfoGet(); this.Categories = new List <string>(); this.ExtendedProperties = new Dictionary <string, string>(); this.MessageId = Guid.NewGuid(); }