Example #1
0
 /// <summary>Builds a new instance of the Rfc5424 class</summary>
 public Rfc5424Config()
 {
     Version                         = DefaultVersion;
     DefaultHostname                 = HostFqdn();
     hostname                        = DefaultHostname;
     DefaultAppName                  = UniversalAssembly.EntryAssembly().Name();
     appName                         = DefaultAppName;
     procId                          = NilValue;
     msgId                           = NilValue;
     structuredData                  = new StructuredDataConfig();
     structuredDataPropsChanged      = (sender, args) => OnPropertyChanged(nameof(StructuredData));
     structuredData.PropertyChanged += structuredDataPropsChanged;
     disableBom                      = false;
 }
Example #2
0
 /// <summary>Builds a new instance of the Rfc3164 class</summary>
 public Rfc3164Config()
 {
     hostname = Dns.GetHostName();
     tag      = UniversalAssembly.EntryAssembly().Name();
 }